]> granicus.if.org Git - check/commitdiff
snprintf: removing missing prototype warnings
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 14 Oct 2013 23:03:21 +0000 (23:03 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 14 Oct 2013 23:03:21 +0000 (23:03 +0000)
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

index 587c6be3a92a370a7978869f38915a1da1551fb1..f00569a8b70485646b846d37bf819ec723d11599 100644 (file)
 #endif /* HAVE_STDARG_H */
 
 #if !HAVE_VASPRINTF
+int rpl_vasprintf(char **, const char *, va_list);
 #if HAVE_STDLIB_H
 #include <stdlib.h>    /* 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 */
 {