1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/net/tcpview/files/patch-gencode.c
Max Khon 03e79f6d24 Fix build on -CURRENT.
Bump port revision.
2003-10-27 20:25:47 +00:00

31 lines
556 B
C

--- gencode.c.orig Fri Apr 23 04:40:01 1993
+++ gencode.c Tue Oct 28 02:03:44 2003
@@ -36,7 +36,7 @@
#include <net/bpf.h>
#ifdef TCPVIEW
-#include <varargs.h>
+#include <stdarg.h>
#include <setjmp.h>
static jmp_buf env;
#define error parse_error
@@ -97,10 +97,15 @@
static int cur_chunk;
#ifdef TCPVIEW
-void parse_error(va_alist)
- va_dcl
+extern eprintv(char *cp, va_list ap);
+
+void parse_error(char *cp, ...)
{
- eprint(va_alist);
+ va_list ap;
+
+ va_start(ap, cp);
+ eprintv(cp, ap);
+ va_end(ap);
longjmp(env,1);
}
#endif