d7367484a6
From a slightly newer "upstream" version that is floating around on the net. Add missing includes.
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
$OpenBSD: patch-tsl_c,v 1.2 2010/08/04 14:05:46 naddy Exp $
|
|
--- tsl.c.orig Mon Dec 12 04:55:31 1994
|
|
+++ tsl.c Wed Aug 4 01:18:55 2010
|
|
@@ -95,7 +95,9 @@
|
|
\*----------------------------------------------------------------------*/
|
|
|
|
#include <stdio.h>
|
|
-#include <varargs.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
+#include <stdarg.h>
|
|
/* #include <search.h> */
|
|
#include "tsl.h"
|
|
|
|
@@ -109,9 +111,6 @@
|
|
|
|
static char rcs_ident[]="@(#)$Header: /home/cvs/ports/misc/brs/patches/Attic/patch-tsl_c,v 1.2 2010/08/04 14:05:46 naddy Exp $";
|
|
|
|
-char *malloc();
|
|
-char *strtok();
|
|
-
|
|
FILE *tfp; /* Text data file pointer */
|
|
FILE *cfp; /* Concordance data file pointer */
|
|
struct tsl_conc_fileheader cfh; /* Concordance file header */
|
|
@@ -145,7 +144,7 @@ int tsl_maxbuffusage=0x100000; /* Max buffer mem usage
|
|
|
|
|
|
|
|
-tsl_error( fatal, va_alist )
|
|
+tsl_error(int fatal, char *format, ...)
|
|
/*----------------------------------------------------------------------
|
|
| NAME:
|
|
| tsl_error
|
|
@@ -162,15 +161,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);
|
|
|