freebsd-ports/security/op/files/patch-lex.l
Edwin Groothuis 7ed835d409 unbreak port by eliminating varargs.h
informed maintainer.
2003-10-15 13:03:16 +00:00

38 lines
697 B
Text

--- 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)