From: assar Date: Sat, 1 Jul 2000 03:38:59 +0000 (+0000) Subject: remove non-STDC code X-Git-Tag: tcpdump-3.5.1~245 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/3cd171317f54bc968808d49e3ca87b6c49ccdcdd remove non-STDC code --- diff --git a/addrtoname.c b/addrtoname.c index 6a864abb..8bfc803d 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -23,7 +23,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.67 2000-01-19 05:24:16 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.68 2000-07-01 03:38:59 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include @@ -53,12 +51,6 @@ struct rtentry; #include #include #include -#ifdef HAVE_MALLOC_H -#include -#endif -#ifdef HAVE_MEMORY_H -#include -#endif #include #include #include diff --git a/interface.h b/interface.h index c1e4a7c1..cd661c50 100644 --- a/interface.h +++ b/interface.h @@ -18,7 +18,7 @@ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.130 2000-06-26 10:54:29 assar Exp $ (LBL) + * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.131 2000-07-01 03:39:00 assar Exp $ (LBL) */ #ifndef tcpdump_interface_h @@ -186,9 +186,7 @@ extern const u_char *snapend; /* Bail if "var" was not captured */ #define TCHECK(var) TCHECK2(var, sizeof(var)) -#ifdef __STDC__ struct timeval; -#endif extern void ts_print(const struct timeval *); extern void relts_print(int); @@ -200,11 +198,9 @@ extern char *dnaddr_string(u_short); extern void wrapup(int); -#if __STDC__ extern __dead void error(const char *, ...) __attribute__((volatile, format (printf, 1, 2))); extern void warning(const char *, ...) __attribute__ ((format (printf, 1, 2))); -#endif extern char *read_infile(char *); extern char *copy_argv(char **); @@ -220,9 +216,7 @@ extern char *dnnum_string(u_short); /* The printer routines. */ -#ifdef __STDC__ struct pcap_pkthdr; -#endif extern void ascii_print_with_offset(const u_char *, u_int, u_int); extern void ascii_print(const u_char *, u_int); diff --git a/parsenfsfh.c b/parsenfsfh.c index cfead1ac..57c1e8ac 100644 --- a/parsenfsfh.c +++ b/parsenfsfh.c @@ -9,7 +9,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.17 2000-06-01 01:02:15 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.18 2000-07-01 03:39:00 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -20,9 +20,6 @@ static const char rcsid[] = #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-arp.c b/print-arp.c index 4760f817..ac326a4d 100644 --- a/print-arp.c +++ b/print-arp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.44 1999-11-21 09:36:48 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.45 2000-07-01 03:39:01 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,18 +32,13 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-atm.c b/print-atm.c index 96bff48f..60b70a81 100644 --- a/print-atm.c +++ b/print-atm.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.12 1999-11-21 09:36:48 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.13 2000-07-01 03:39:01 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -31,10 +31,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-bootp.c b/print-bootp.c index bdd4b3a6..ec1052b1 100644 --- a/print-bootp.c +++ b/print-bootp.c @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.48 1999-11-21 09:36:49 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.49 2000-07-01 03:39:01 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -33,19 +33,14 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-chdlc.c b/print-chdlc.c index 9fd3c842..d6766989 100644 --- a/print-chdlc.c +++ b/print-chdlc.c @@ -22,7 +22,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.3 2000-04-24 12:59:39 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.4 2000-07-01 03:39:01 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -35,10 +35,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-decnet.c b/print-decnet.c index 4c290f9e..224d51a1 100644 --- a/print-decnet.c +++ b/print-decnet.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-decnet.c,v 1.28 2000-01-17 06:24:24 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-decnet.c,v 1.29 2000-07-01 03:39:01 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,10 +32,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #ifdef HAVE_LIBDNET @@ -43,9 +41,6 @@ struct rtentry; #endif #include -#ifdef HAVE_MALLOC_H -#include -#endif #include #include #include diff --git a/print-dhcp6.c b/print-dhcp6.c index 3897de66..5fbf5587 100644 --- a/print-dhcp6.c +++ b/print-dhcp6.c @@ -29,7 +29,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-dhcp6.c,v 1.8 2000-05-17 05:00:12 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-dhcp6.c,v 1.9 2000-07-01 03:39:02 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -40,18 +40,13 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include #include diff --git a/print-domain.c b/print-domain.c index 82c329d4..172d5267 100644 --- a/print-domain.c +++ b/print-domain.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.44 2000-04-27 03:44:05 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.45 2000-07-01 03:39:02 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,10 +32,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-ether.c b/print-ether.c index bd2a7b7b..573fdba8 100644 --- a/print-ether.c +++ b/print-ether.c @@ -20,7 +20,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.50 2000-06-10 13:49:52 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.51 2000-07-01 03:39:02 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -31,10 +31,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-fddi.c b/print-fddi.c index 858dfb5a..bd4bd4f9 100644 --- a/print-fddi.c +++ b/print-fddi.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.40 1999-12-14 16:49:02 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.41 2000-07-01 03:39:02 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-icmp.c b/print-icmp.c index 2d846a96..f7b1b2b9 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.47 2000-06-10 13:41:19 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.48 2000-07-01 03:39:03 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,10 +32,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-ip.c b/print-ip.c index 0d86de55..6a92fb72 100644 --- a/print-ip.c +++ b/print-ip.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.82 2000-05-10 05:11:27 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.83 2000-07-01 03:39:03 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -40,9 +40,6 @@ static const char rcsid[] = #include #include -#ifdef HAVE_MALLOC_H -#include -#endif #include #include #include diff --git a/print-ip6.c b/print-ip6.c index ec964f1f..14a8c5ce 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.5 2000-04-09 19:15:14 assar Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.6 2000-07-01 03:39:05 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -44,9 +44,7 @@ static const char rcsid[] = #include #include -#ifdef __STDC__ #include -#endif #include #include "interface.h" diff --git a/print-ipx.c b/print-ipx.c index a5decb4a..323088d1 100644 --- a/print-ipx.c +++ b/print-ipx.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.23 2000-01-17 06:24:25 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.24 2000-07-01 03:39:05 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -43,9 +43,7 @@ static const char rcsid[] = #include #include -#ifdef __STDC__ #include -#endif #include #include diff --git a/print-isakmp.c b/print-isakmp.c index 725604ff..75c68787 100644 --- a/print-isakmp.c +++ b/print-isakmp.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.12 2000-04-28 11:14:48 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.13 2000-07-01 03:39:05 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -43,10 +43,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-isoclns.c b/print-isoclns.c index 300228ec..bf832fb6 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.16 1999-11-21 09:36:55 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.17 2000-07-01 03:39:06 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-lcp.c b/print-lcp.c index 88dd6b73..d7695e14 100644 --- a/print-lcp.c +++ b/print-lcp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = -"@(#) $Header: /tcpdump/master/tcpdump/Attic/print-lcp.c,v 1.5 2000-05-15 00:38:37 assar Exp $ (LBL)"; +"@(#) $Header: /tcpdump/master/tcpdump/Attic/print-lcp.c,v 1.6 2000-07-01 03:39:06 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,18 +32,13 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-netbios.c b/print-netbios.c index 98331d99..d2bde873 100644 --- a/print-netbios.c +++ b/print-netbios.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-netbios.c,v 1.13 1999-11-21 09:36:57 fenner Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-netbios.c,v 1.14 2000-07-01 03:39:06 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -43,9 +43,7 @@ static const char rcsid[] = #include #include -#ifdef __STDC__ #include -#endif #include #include diff --git a/print-nfs.c b/print-nfs.c index 4fb7256f..a6b88715 100644 --- a/print-nfs.c +++ b/print-nfs.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-nfs.c,v 1.77 2000-06-12 15:45:05 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-nfs.c,v 1.78 2000-07-01 03:39:06 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,10 +32,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-ntp.c b/print-ntp.c index 661ed30f..886a45fa 100644 --- a/print-ntp.c +++ b/print-ntp.c @@ -25,7 +25,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ntp.c,v 1.27 1999-11-21 09:36:57 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ntp.c,v 1.28 2000-07-01 03:39:07 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -36,10 +36,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-null.c b/print-null.c index 7089eb9d..5c312e15 100644 --- a/print-null.c +++ b/print-null.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.30 1999-12-22 06:27:21 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.31 2000-07-01 03:39:07 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-ppp.c b/print-ppp.c index 8ee278fd..46ade9f6 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.38 2000-05-28 06:29:43 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.39 2000-07-01 03:39:08 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-pppoe.c b/print-pppoe.c index 406f4254..8a020464 100644 --- a/print-pppoe.c +++ b/print-pppoe.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = -"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.3 1999-12-15 00:23:06 fenner Exp $ (LBL)"; +"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.4 2000-07-01 03:39:08 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,18 +32,13 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-raw.c b/print-raw.c index c7504902..dbba479b 100644 --- a/print-raw.c +++ b/print-raw.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.25 1999-11-21 09:37:00 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.26 2000-07-01 03:39:08 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,10 +34,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-rip.c b/print-rip.c index 8d5363f0..9f409eeb 100644 --- a/print-rip.c +++ b/print-rip.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-rip.c,v 1.41 2000-06-18 17:41:35 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-rip.c,v 1.42 2000-07-01 03:39:09 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -40,6 +40,7 @@ static const char rcsid[] = #include #include +#include #include "interface.h" #include "addrtoname.h" diff --git a/print-sl.c b/print-sl.c index a6b4dc9c..9f2858a0 100644 --- a/print-sl.c +++ b/print-sl.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.46 1999-11-21 12:38:24 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.47 2000-07-01 03:39:09 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -37,9 +37,8 @@ static const char rcsid[] = #include #include -#if __STDC__ +struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-snmp.c b/print-snmp.c index 503fc967..9b2e7e3a 100644 --- a/print-snmp.c +++ b/print-snmp.c @@ -45,7 +45,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-snmp.c,v 1.40 2000-01-17 06:24:26 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-snmp.c,v 1.41 2000-07-01 03:39:09 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -56,9 +56,6 @@ static const char rcsid[] = #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include diff --git a/print-stp.c b/print-stp.c index d10111f0..43bf9288 100644 --- a/print-stp.c +++ b/print-stp.c @@ -11,7 +11,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.2 2000-06-13 12:19:07 assar Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.3 2000-07-01 03:39:10 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -31,9 +31,7 @@ static const char rcsid[] = #include #include -#ifdef __STDC__ #include -#endif #include #include diff --git a/print-sunrpc.c b/print-sunrpc.c index 9c2043ec..d9667a2b 100644 --- a/print-sunrpc.c +++ b/print-sunrpc.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.32 2000-06-10 05:38:00 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.33 2000-07-01 03:39:10 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -32,10 +32,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/print-tcp.c b/print-tcp.c index fe8f5eab..fa209918 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.66 2000-06-01 01:09:32 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.67 2000-07-01 03:39:10 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -39,9 +39,6 @@ static const char rcsid[] = #include #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #include #include diff --git a/print-telnet.c b/print-telnet.c index e0db8ee9..5be7e6f1 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -51,7 +51,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-telnet.c,v 1.8 2000-06-03 16:40:35 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-telnet.c,v 1.9 2000-07-01 03:39:11 assar Exp $"; #endif #include @@ -70,9 +70,7 @@ static const char rcsid[] = #include #include -#ifdef __STDC__ #include -#endif #include #include diff --git a/print-vjc.c b/print-vjc.c index 120129d2..baec41a5 100644 --- a/print-vjc.c +++ b/print-vjc.c @@ -27,7 +27,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.3 2000-01-09 21:34:20 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.4 2000-07-01 03:39:11 assar Exp $ (LBL)"; #endif #include @@ -36,10 +36,8 @@ static const char rcsid[] = #include #include -#if __STDC__ struct mbuf; struct rtentry; -#endif #include #include diff --git a/savestr.c b/savestr.c index b5cb5150..e99e3c94 100644 --- a/savestr.c +++ b/savestr.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/Attic/savestr.c,v 1.4 1999-11-21 09:37:04 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/Attic/savestr.c,v 1.5 2000-07-01 03:39:11 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -30,9 +30,6 @@ static const char rcsid[] = #include -#ifdef HAVE_MALLOC_H -#include -#endif #include #include #include diff --git a/setsignal.c b/setsignal.c index 058fb152..add29792 100644 --- a/setsignal.c +++ b/setsignal.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/setsignal.c,v 1.5 1999-11-21 09:37:04 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/setsignal.c,v 1.6 2000-07-01 03:39:12 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -30,9 +30,6 @@ static const char rcsid[] = #include -#ifdef HAVE_MEMORY_H -#include -#endif #include #ifdef HAVE_SIGACTION #include diff --git a/util.c b/util.c index 7806a9f0..c205615a 100644 --- a/util.c +++ b/util.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.67 2000-06-21 09:08:34 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.68 2000-07-01 03:39:12 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -38,16 +38,9 @@ static const char rcsid[] = #ifdef HAVE_FCNTL_H #include #endif -#ifdef HAVE_MALLOC_H -#include -#endif #include #include -#if __STDC__ #include -#else -#include -#endif #include #include #ifdef TIME_WITH_SYS_TIME @@ -227,22 +220,12 @@ tok2str(register const struct tok *lp, register const char *fmt, /* VARARGS */ __dead void -#if __STDC__ error(const char *fmt, ...) -#else -error(fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; (void)fprintf(stderr, "%s: ", program_name); -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif (void)vfprintf(stderr, fmt, ap); va_end(ap); if (*fmt) { @@ -256,22 +239,12 @@ error(fmt, va_alist) /* VARARGS */ void -#if __STDC__ warning(const char *fmt, ...) -#else -warning(fmt, va_alist) - const char *fmt; - va_dcl -#endif { va_list ap; (void)fprintf(stderr, "%s: WARNING: ", program_name); -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif (void)vfprintf(stderr, fmt, ap); va_end(ap); if (*fmt) { diff --git a/vfprintf.c b/vfprintf.c index 394b2307..7bd3329a 100644 --- a/vfprintf.c +++ b/vfprintf.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/vfprintf.c,v 1.3 1999-11-21 09:37:05 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/vfprintf.c,v 1.4 2000-07-01 03:39:12 assar Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -31,11 +31,7 @@ static const char rcsid[] = #include #include -#if __STDC__ #include -#else -#include -#endif #include #include