From 9330b890a2330fb9f95a5158920ebccb1c8ad31e Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 12 Jul 1999 20:32:59 +0000 Subject: fatal() no longer has "const char*" as third arg prototype. Didn't work well with our own vsnprintf(). When the system doesn't have vsnprintf() -- as determined by autoconf -- provide a definition for the one our own vsnprintf.c --- src/common.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common.c b/src/common.c index 0e7aac955..2ae5d0620 100644 --- a/src/common.c +++ b/src/common.c @@ -58,12 +58,18 @@ char* strerror(int errno) #define BUFSIZE 1024 void -fatal(const char* ident, int exitcode, const char* format, ...) +fatal(const char* ident, int exitcode, char* format, ...) { +#ifndef HAVE_VSNPRINTF + /* a replacement is provided in vsnprintf.c */ + int vsnprintf(char* s, int n, char* fmt, ...); +#endif /* !HAVE_VSNPRINTF */ + char log_entry[BUFSIZE]; va_list arg_ptr; va_start(arg_ptr, format); + vsnprintf(log_entry, BUFSIZE, format, arg_ptr); va_end(arg_ptr); -- cgit v1.2.3-70-g09d2