diff options
Diffstat (limited to 'databases/msql3/files/patch-bc')
-rw-r--r-- | databases/msql3/files/patch-bc | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/databases/msql3/files/patch-bc b/databases/msql3/files/patch-bc deleted file mode 100644 index f5a964025c22..000000000000 --- a/databases/msql3/files/patch-bc +++ /dev/null @@ -1,59 +0,0 @@ ---- src/msql/libmsql.c.bak Wed Aug 22 04:17:08 2001 -+++ src/msql/libmsql.c Thu Sep 11 11:02:19 2003 -@@ -88,11 +88,11 @@ - RETSIGTYPE pipeHandler(int); - #endif - --#if defined(_OS_OS2) || defined (_OS_WIN32) --static void msqlDebug( int module, ... ); -+#if defined(_OS_OS2) || defined (_OS_WIN32) || defined(ANSI_ARGS) -+static void msqlDebug( int module, char *fmt, ... ); - #endif - --#if defined(_OS_UNIX) -+#if defined(_OS_UNIX) && !defined(ANSI_ARGS) - static void msqlDebug(); - #endif - -@@ -216,23 +216,24 @@ - */ - - #ifdef ANSI_ARGS --static void msqlDebug(int module, ...) -+static void msqlDebug(int module, char *fmt, ...) - #else - static void msqlDebug(va_alist) - va_dcl - #endif - { - va_list args; -- char msg[1024], -- *fmt; -+ char msg[1024]; - - #ifdef ANSI_ARGS -- va_start(args, module); -+ va_start(args, fmt); - #else - int module; -+ char *fmt; - - va_start(args); - module = (int) va_arg(args, int ); -+ fmt = (char *)va_arg(args, char *); - #endif - - if (! (module & debugLevel)) -@@ -241,9 +242,10 @@ - return; - } - -- fmt = (char *)va_arg(args, char *); -- if (!fmt) -+ if (!fmt) { -+ va_end(args); - return; -+ } - (void)vsprintf(msg,fmt,args); - va_end(args); - fprintf(stderr,"[libmsql] %s",msg); |