summaryrefslogtreecommitdiff
path: root/security/op/files/patch-lex.l
blob: 293eb09be96f0c0ae260ae91e71b783e11609b37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- lex.l.orig	Thu Mar  3 20:47:59 2005
+++ lex.l	Thu Mar  3 20:49:11 2005
@@ -10,10 +10,11 @@
 /* +-------------------------------------------------------------------+ */
 
 #include <stdio.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include <ctype.h>
 #include "defs.h"
 
+static int	addarg();
 static cmd_t	*newcmd();
 char	*savestr();
 
@@ -47,15 +48,12 @@
 #include <sys/stat.h>
 #include <syslog.h>
 
-msg(va_alist)
- va_dcl
+msg (char *s, ...)
 {
 #if 0
 	va_list	ap;
-	char	*s;
 
-	va_start(ap);
-	s = va_arg(ap, char *);
+	va_start(ap,s);
 	fprintf(stderr,"line %d: ",yyline);
 	vfprintf(stderr, s, ap);
 	fputc('\n', stderr);