From a7f5c58e398fc4622e02753409709b25589d3394 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 14 Oct 2013 23:03:21 +0000 Subject: [PATCH] snprintf: removing missing prototype warnings These prototypes are all in libcompat.h, and as there is no need for this file to include libcompat.h, the missing headers are put into this file. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@839 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- lib/snprintf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/snprintf.c b/lib/snprintf.c index 587c6be..f00569a 100644 --- a/lib/snprintf.c +++ b/lib/snprintf.c @@ -294,6 +294,7 @@ #endif /* HAVE_STDARG_H */ #if !HAVE_VASPRINTF +int rpl_vasprintf(char **, const char *, va_list); #if HAVE_STDLIB_H #include /* For malloc(3). */ #endif /* HAVE_STDLIB_H */ @@ -1530,9 +1531,13 @@ rpl_snprintf(va_alist) va_dcl #if !HAVE_ASPRINTF #if HAVE_STDARG_H int +rpl_asprintf(char **ret, const char *format, ...); +int rpl_asprintf(char **ret, const char *format, ...) #else int +rpl_asprintf(va_alist) va_dcl; +int rpl_asprintf(va_alist) va_dcl #endif /* HAVE_STDARG_H */ { -- 2.40.0