From 5c3281ad89d1ddf99a6ec38588e1f438fb1b10a7 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 24 Sep 2009 12:24:10 -0700 Subject: [PATCH] Use proper prototypes for snprintf, vsnprintf. --- src/ChangeLog | 5 +++++ src/sysdep.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4a26e4a5..2f3de8a0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-09-24 Micah Cowan + + * sysdep.h: Use proper prototypes for snprintf, vsnprintf (thanks + to Steven Schweda). + 2009-09-24 Steven Schweda * main.c (print_version): Remove VMS-conditional build info diff --git a/src/sysdep.h b/src/sysdep.h index f36b0267..e0dcdeea 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -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 +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