39 lines
942 B
Plaintext
39 lines
942 B
Plaintext
$OpenBSD: patch-tsl_c,v 1.1 2004/01/05 14:26:10 espie Exp $
|
|
--- tsl.c.orig 2004-01-05 15:22:24.000000000 +0100
|
|
+++ tsl.c 2004-01-05 15:23:41.000000000 +0100
|
|
@@ -95,7 +95,7 @@
|
|
\*----------------------------------------------------------------------*/
|
|
|
|
#include <stdio.h>
|
|
-#include <varargs.h>
|
|
+#include <stdarg.h>
|
|
/* #include <search.h> */
|
|
#include "tsl.h"
|
|
|
|
@@ -145,7 +145,7 @@ int tsl_maxbuffusage=0x100000; /* Max bu
|
|
|
|
|
|
|
|
-tsl_error( fatal, va_alist )
|
|
+tsl_error(int fatal, char *format, ...)
|
|
/*----------------------------------------------------------------------
|
|
| NAME:
|
|
| tsl_error
|
|
@@ -162,15 +162,11 @@ tsl_error( fatal, va_alist )
|
|
|
|
|
\*----------------------------------------------------------------------*/
|
|
|
|
-int fatal;
|
|
-va_dcl
|
|
{
|
|
va_list ap;
|
|
- char *format;
|
|
|
|
- va_start(ap);
|
|
+ va_start(ap, format);
|
|
|
|
- format = va_arg(ap, char *);
|
|
vfprintf(stderr, format, ap);
|
|
putc('\n', stderr);
|
|
|