From da0a34dd6ba68fc0143d4314c042cfe34d158c5c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 2 Apr 2014 17:38:56 +0200 Subject: [PATCH] asprintf: we are also using vasprintf, let's define it correctly --- src/compat/asprintf.c | 2 +- src/compat/compat.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5