From: Vincent Bernat Date: Wed, 2 Apr 2014 15:38:56 +0000 (+0200) Subject: asprintf: we are also using vasprintf, let's define it correctly X-Git-Tag: 0.7.8~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da0a34dd6ba68fc0143d4314c042cfe34d158c5c;p=thirdparty%2Flldpd.git asprintf: we are also using vasprintf, let's define it correctly --- diff --git a/src/compat/asprintf.c b/src/compat/asprintf.c index 4fd3f94c..dd32ff78 100644 --- a/src/compat/asprintf.c +++ b/src/compat/asprintf.c @@ -25,7 +25,7 @@ #define INIT_SZ 128 -static int _vasprintf(char **str, const char *fmt, va_list ap) +int vasprintf(char **str, const char *fmt, va_list ap) { int ret = -1; va_list ap2; diff --git a/src/compat/compat.h b/src/compat/compat.h index e4cc969a..983b40b6 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -46,6 +46,7 @@ #endif #if !HAVE_ASPRINTF +int vasprintf(char **str, const char *fmt, va_list ap) __attribute__ ((format (printf, 2, 0))); int asprintf (char **, const char *, ...) __attribute__ ((format (printf, 2, 3))); #endif