$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 -#include +#include /* #include */ #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. :-) */