]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of some includes that aren't needed; the include of <net/if.h>,
authorguy <guy>
Sun, 24 Sep 2000 07:42:31 +0000 (07:42 +0000)
committerguy <guy>
Sun, 24 Sep 2000 07:42:31 +0000 (07:42 +0000)
on at least some platforms, drags in <net/if_arp.h>, which may declare
some of the structures for ARP packet layouts, and may do so in a
fashion that conflicts with the declarations here.

print-arp.c

index 1ef2505f941a830b1defcde4fd0b1734f605e621..26cb7cde7e92fd80bdf66c6a8195af4182abe667 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.46 2000-09-23 08:03:31 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-arp.c,v 1.47 2000-09-24 07:42:31 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -32,12 +32,6 @@ static const char rcsid[] =
 #include <sys/time.h>
 #include <sys/socket.h>
 
 #include <sys/time.h>
 #include <sys/socket.h>
 
-struct mbuf;
-struct rtentry;
-#include <net/if.h>
-
-#include <netinet/in.h>
-
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>