]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
asprintf: we are also using vasprintf, let's define it correctly
authorVincent Bernat <vbe@deezer.com>
Wed, 2 Apr 2014 15:38:56 +0000 (17:38 +0200)
committerVincent Bernat <vbe@deezer.com>
Wed, 2 Apr 2014 15:38:56 +0000 (17:38 +0200)
src/compat/asprintf.c
src/compat/compat.h

index 4fd3f94c50dec111d90ed043f75806a674d10815..dd32ff78b55959a1d64f9cfce8d761cad7a55476 100644 (file)
@@ -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;
index e4cc969a9ab24c444ef82af9a4454d9028f28ba6..983b40b6baba873e0382d05356d7be76aa20fa6c 100644 (file)
@@ -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