Use proper prototypes for snprintf, vsnprintf.

This commit is contained in:
Micah Cowan 2009-09-24 12:24:10 -07:00
parent e83b33f844
commit 5c3281ad89
2 changed files with 8 additions and 2 deletions

View 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

View 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