diff options
Diffstat (limited to 'cad/mars/files/patch-05')
-rw-r--r-- | cad/mars/files/patch-05 | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/cad/mars/files/patch-05 b/cad/mars/files/patch-05 index 2ab0dd56b91f..7bad1e75b276 100644 --- a/cad/mars/files/patch-05 +++ b/cad/mars/files/patch-05 @@ -1,9 +1,35 @@ ---- sim/log.c.orig Tue Oct 6 20:52:51 1992 -+++ sim/log.c Mon Nov 18 21:18:07 1996 -@@ -80,7 +80,11 @@ +--- log.c.orig Wed Oct 7 04:52:51 1992 ++++ log.c Tue Dec 9 19:59:48 2003 +@@ -23,7 +23,7 @@ + #include "packet.h" + #include "event.h" + #include "log.h" +-#include <varargs.h> ++#include <stdarg.h> + + #ifdef DEBUG + extern Log debug_log; +@@ -59,13 +59,7 @@ + /* Debugging log-- writes name of component along with message */ + /*VARARGS4*/ + /*dbg_write(l, level, c, format, args)*/ +-dbg_write(l, level, c, format, va_alist) +- Log l; +- int level; +- Component *c; +- char *format; +- va_dcl +- ++dbg_write(Log l, int level, Component *c, char *format, ... ) + { + va_list p; + +@@ -79,8 +73,12 @@ + } /* Add the time */ fprintf(l, "%d ", ev_now()); - va_start(p); +- va_start(p); ++ va_start(p, format); +#ifdef __FreeBSD__ + vfprintf(l, format, p); +#else |