From: wessels <> Date: Mon, 1 Apr 1996 10:42:30 +0000 (+0000) Subject: A minor cleanup in _db_print in __STRICT_ANSI__ mode. Use normal argument X-Git-Tag: SQUID_3_0_PRE1~6328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f61b087c075bd32202d60fcf620c8757470788;p=thirdparty%2Fsquid.git A minor cleanup in _db_print in __STRICT_ANSI__ mode. Use normal argument passing for all required arguments, and stdargs for all extra args. /Henrik --- diff --git a/src/debug.cc b/src/debug.cc index d4d74a8489..a5e3c88c13 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,4 +1,4 @@ -/* $Id: debug.cc,v 1.9 1996/03/27 20:20:44 wessels Exp $ */ +/* $Id: debug.cc,v 1.10 1996/04/01 03:42:30 wessels Exp $ */ #include "squid.h" @@ -15,7 +15,7 @@ static char the_time[81]; static int debugLevels[MAX_DEBUG_SECTIONS]; #if defined(__STRICT_ANSI__) -void _db_print(int section,...) +void _db_print(int section, int level, char *format...) { va_list args; #else @@ -24,9 +24,9 @@ void _db_print(va_alist) { va_list args; int section; -#endif int level; char *format = NULL; +#endif static char f[BUFSIZ]; static char tmpbuf[BUFSIZ]; char *s = NULL; @@ -35,13 +35,13 @@ void _db_print(va_alist) return; #if defined(__STRICT_ANSI__) - va_start(args, section); + va_start(args, format); #else va_start(args); section = va_arg(args, int); -#endif level = va_arg(args, int); format = va_arg(args, char *); +#endif if (level > debugLevels[section]) { va_end(args);