diff options
author | jbj <devnull@localhost> | 2001-04-17 19:29:12 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-04-17 19:29:12 +0000 |
commit | 8b20f15fbf2b7c1fed46b228dca2fc8358414903 (patch) | |
tree | cb1e4f74543f9da914a63fe14b4efb31e92bc19c /rpmio/rpmlog.c | |
parent | 63db1277013da1355d86ef5f3faf5dff26581c17 (diff) | |
download | librpm-tizen-8b20f15fbf2b7c1fed46b228dca2fc8358414903.tar.gz librpm-tizen-8b20f15fbf2b7c1fed46b228dca2fc8358414903.tar.bz2 librpm-tizen-8b20f15fbf2b7c1fed46b228dca2fc8358414903.zip |
- portability: vsnprintf/snprintf wrappers for those without (#34657).
CVS patchset: 4686
CVS date: 2001/04/17 19:29:12
Diffstat (limited to 'rpmio/rpmlog.c')
-rw-r--r-- | rpmio/rpmlog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c index 1d5bdb5da..8e060d81c 100644 --- a/rpmio/rpmlog.c +++ b/rpmio/rpmlog.c @@ -98,6 +98,14 @@ static char *rpmlogMsgPrefix[] = { "D: ", /*!< RPMLOG_DEBUG */ }; +#if !defined(HAVE_VSNPRINTF) +static inline int vsnprintf(char * buf, /*@unused@*/ int nb, + const char * fmt, va_list ap) +{ + return vsprintf(buf, fmt, ap); +} +#endif + static void vrpmlog (unsigned code, const char *fmt, va_list ap) { int pri = RPMLOG_PRI(code); |