aboutsummaryrefslogtreecommitdiffstats
path: root/security/op/files/patch-lex.l
blob: e97039574e36ecdeca887d2b9c1df4216b158cbf (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
34
35
36
37
38
--- lex.l.orig  Wed Oct 15 05:58:41 2003
+++ lex.l   Wed Oct 15 06:01:15 2003
@@ -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,20 +48,15 @@
 #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);
    va_end(ap);
-#endif
 }
 
 static addarg(state, cmd, str)