diff options
author | wiz <wiz> | 2004-07-10 21:13:31 +0000 |
---|---|---|
committer | wiz <wiz> | 2004-07-10 21:13:31 +0000 |
commit | d179635bd2293438901bda689b2f01201fa22e8f (patch) | |
tree | e1e8ead053d941950ac6505576f0cefbfed75919 /misc/brs/patches | |
parent | 39726eb447b4a9970238e55aeb8c1811007c1ea8 (diff) | |
download | pkgsrc-d179635bd2293438901bda689b2f01201fa22e8f.tar.gz |
Convert from varargs to stdarg.h. Fix two other warnings while here.
Now builds with gcc3.
Diffstat (limited to 'misc/brs/patches')
-rw-r--r-- | misc/brs/patches/patch-ac | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/misc/brs/patches/patch-ac b/misc/brs/patches/patch-ac new file mode 100644 index 00000000000..379897da1d0 --- /dev/null +++ b/misc/brs/patches/patch-ac @@ -0,0 +1,60 @@ +$NetBSD: patch-ac,v 1.1 2004/07/10 21:13:31 wiz Exp $ + +--- tsl.c.orig 1994-12-12 04:55:31.000000000 +0100 ++++ tsl.c +@@ -95,7 +95,7 @@ + \*----------------------------------------------------------------------*/ + + #include <stdio.h> +-#include <varargs.h> ++#include <stdarg.h> + /* #include <search.h> */ + #include "tsl.h" + +@@ -145,7 +145,8 @@ int tsl_maxbuffusage=0x100000; /* Max bu + + + +-tsl_error( fatal, va_alist ) ++void ++tsl_error(int fatal, ...) + /*---------------------------------------------------------------------- + | NAME: + | tsl_error +@@ -154,21 +155,16 @@ tsl_error( fatal, va_alist ) + | Report an error specific to the TSL library. + | + | fatal TRUE if the error should cause an exit. +-| va_alist Variable argument list for printing the error +-| report. + | + | HISTORY: + | 890904 cc Created. + | + \*----------------------------------------------------------------------*/ +- +-int fatal; +-va_dcl + { + va_list ap; + char *format; + +- va_start(ap); ++ va_start(ap, fatal); + + format = va_arg(ap, char *); + vfprintf(stderr, format, ap); +@@ -626,11 +622,11 @@ int memlimit; + if (tsl_maxbuffs < 1) tsl_maxbuffs = 1; + tsl_firstbuffer.next = &tsl_lastbuffer; + tsl_firstbuffer.prev = NULL; +- tsl_firstbuffer.win = NULL; ++ tsl_firstbuffer.win = 0; + tsl_firstbuffer.bufferp = NULL; + tsl_lastbuffer.prev = &tsl_firstbuffer; + tsl_lastbuffer.next = NULL; +- tsl_lastbuffer.win = NULL; ++ tsl_lastbuffer.win = 0; + tsl_lastbuffer.bufferp = NULL; + + /* Global buffer for compressed text. Much bigger than needed. :-) */ |