diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2003-09-24 12:28:14 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2003-09-24 12:28:14 +0000 |
commit | 575744ef5b1e03db3a5973662dd6e43133e4e643 (patch) | |
tree | 690ff9f7f9a32d475a6bf849366023c444836080 /databases/msql3/files/patch-az | |
parent | Teach PTHREADS (diff) |
Teach stdarg.h
Diffstat (limited to 'databases/msql3/files/patch-az')
-rw-r--r-- | databases/msql3/files/patch-az | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/databases/msql3/files/patch-az b/databases/msql3/files/patch-az new file mode 100644 index 000000000000..bf2ebbbec755 --- /dev/null +++ b/databases/msql3/files/patch-az @@ -0,0 +1,52 @@ +--- src/common/debug.c.bak Mon Aug 20 05:19:27 2001 ++++ src/common/debug.c Thu Sep 11 10:38:57 2003 +@@ -18,7 +18,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> +-#include <varargs.h> ++#include <stdarg.h> + #include <string.h> + #include "debug.h" + +@@ -136,26 +136,20 @@ + + + +-void _msqlTrace(va_alist) +- va_dcl ++void _msqlTrace(int dir, char *fmt, ...) + { + va_list args; +- char *fmt, +- *tag; +- int loop, +- dir; ++ char *tag; ++ int loop; + static int indent = 0; + static char inTag[] = "-->", + outTag[] = "<--"; + +- va_start(args); + if (! (debugLevel & MOD_TRACE)) + { +- va_end(args); + return; + } + +- dir = va_arg(args, int); + if (dir == TRACE_IN) + { + tag = inTag; +@@ -163,9 +157,9 @@ + } + else + tag = outTag; +- fmt = (char *)va_arg(args, char *); + if (!fmt) + return; ++ va_start(args, fmt); + (void)vsprintf(msqlDebugBuf,fmt,args); + va_end(args); + printf("[%s] ",PROGNAME); |