diff --git a/lib/rpmps.c b/lib/rpmps.c index 6b24b884e..26623c757 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -207,25 +207,6 @@ int rpmpsTrim(rpmps ps, rpmps filter) 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, diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c index cb3ef856c..6c2ba323f 100644 --- a/rpmio/rpmlog.c +++ b/rpmio/rpmlog.c @@ -162,14 +162,6 @@ const char * rpmlogLevelPrefix(rpmlogLvl pri) 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) diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 3dc3ea38c..c609d7cca 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -21,14 +21,6 @@ #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 : \