]> sjero.net Git - wget/commitdiff
Use proper prototypes for snprintf, vsnprintf.
authorMicah Cowan <micah@cowan.name>
Thu, 24 Sep 2009 19:24:10 +0000 (12:24 -0700)
committerMicah Cowan <micah@cowan.name>
Thu, 24 Sep 2009 19:24:10 +0000 (12:24 -0700)
src/ChangeLog
src/sysdep.h

index 4a26e4a5c62834ce1efb7b87289f75cc787fc04e..2f3de8a033b9f4b9c76683832efb02123ba5ca87 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-24  Micah Cowan  <micah@cowan.name>
+
+       * sysdep.h: Use proper prototypes for snprintf, vsnprintf (thanks
+       to Steven Schweda).
+
 2009-09-24  Steven Schweda  <sms@antinode.info>
 
        * main.c (print_version): Remove VMS-conditional build info
index f36b0267b5ba25bbd1c6acafb1dbb374022a3088..e0dcdeeaf45a3fade5edbf91ab05d8663db127e9 100644 (file)
@@ -216,10 +216,11 @@ void *memrchr (const void *, int, size_t);
 /* These are defined in snprintf.c.  It would be nice to have an
    snprintf.h, though.  */
 #ifndef HAVE_SNPRINTF
-int snprintf ();
+int snprintf (char *str, size_t count, const char *fmt, ...);
 #endif
 #ifndef HAVE_VSNPRINTF
-int vsnprintf ();
+#include <stdarg.h>
+int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
 #endif
 
 /* Some systems (Linux libc5, "NCR MP-RAS 3.0", and others) don't