return gotProblems;
}
-#if !defined(HAVE_VSNPRINTF)
-static inline int vsnprintf(char * buf, int nb,
- const char * fmt, va_list ap)
-{
- return vsprintf(buf, fmt, ap);
-}
-#endif
-#if !defined(HAVE_SNPRINTF)
-static inline int snprintf(char * buf, int nb, const char * fmt, ...)
-{
- va_list ap;
- int rc;
- va_start(ap, fmt);
- rc = vsnprintf(buf, nb, fmt, ap);
- va_end(ap);
- return rc;
-}
-#endif
-
rpmProblem rpmProblemCreate(rpmProblemType type,
const char * pkgNEVR,
fnpyKey key,
return prefix;
}
-#if !defined(HAVE_VSNPRINTF)
-static inline int vsnprintf(char * buf, int nb,
- const char * fmt, va_list ap)
-{
- return vsprintf(buf, fmt, ap);
-}
-#endif
-
/* FIX: rpmlogMsgPrefix[] dependent, not unqualified */
/* FIX: rpmlogMsgPrefix[] may be NULL */
static void vrpmlog (unsigned code, const char *fmt, va_list ap)
#include "debug.h"
-#if !defined(HAVE_VSNPRINTF)
-static inline int vsnprintf(char * buf, int nb,
- const char * fmt, va_list ap)
-{
- return vsprintf(buf, fmt, ap);
-}
-#endif
-
#define INITSTATE(_lua, lua) \
rpmlua lua = _lua ? _lua : \
(globalLuaState ? globalLuaState : \