From: assar Date: Sat, 1 Jul 2000 03:32:50 +0000 (+0000) Subject: remove non-stdc code X-Git-Tag: libpcap-0.6.1~139 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/95cd5942c1cc152957807f1811c44267d06388bd remove non-stdc code remove unused variable warning --- diff --git a/gencode.c b/gencode.c index e946d4e1..92f83914 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.111 2000-06-26 05:10:40 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.112 2000-07-01 03:32:50 assar Exp $ (LBL)"; #endif #include @@ -31,11 +31,8 @@ static const char rcsid[] = #include #endif -#if __STDC__ struct mbuf; struct rtentry; -#endif - #include #include @@ -44,11 +41,7 @@ struct rtentry; #include #include #include -#if __STDC__ #include -#else -#include -#endif #include "pcap-int.h" @@ -81,21 +74,11 @@ int pcap_fddipad; /* VARARGS */ __dead void -#if __STDC__ bpf_error(const char *fmt, ...) -#else -bpf_error(fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif if (bpf_pcap != NULL) (void)vsnprintf(pcap_geterr(bpf_pcap), PCAP_ERRBUF_SIZE, fmt, ap); @@ -1186,7 +1169,10 @@ struct block * gen_proto_abbrev(proto) int proto; { - struct block *b0, *b1; +#ifdef INET6 + struct block *b0; +#endif + struct block *b1; switch (proto) {