don't include pcap.h needlessly

Both interface.h and netdissect.h include <pcap.h>, thus most files
should not include it regardless if these need it or not. The only
exceptions so far remain:
* addrtoname.c
* missing/datalinks.c
* missing/dlnames.c
* tcpdump.c
This commit is contained in:
Denis Ovsienko 2014-02-28 13:10:28 +04:00
parent 3408e62bf6
commit 88e479b75e
35 changed files with 0 additions and 36 deletions

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"

View File

@ -27,7 +27,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include <string.h>
#include "interface.h"

View File

@ -27,7 +27,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include <string.h>
#include "interface.h"

View File

@ -26,7 +26,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -28,7 +28,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -30,7 +30,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pcap.h>
#include "interface.h"
#include "addrtoname.h"

View File

@ -26,7 +26,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include <string.h>
#include "interface.h"

View File

@ -23,7 +23,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -21,7 +21,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"

View File

@ -29,7 +29,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "addrtoname.h"

View File

@ -27,8 +27,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -27,7 +27,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -27,7 +27,6 @@
#include <stdio.h>
#include <string.h>
#include <pcap.h>
#include "addrtoname.h"
#include "interface.h"

View File

@ -21,7 +21,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -5,7 +5,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "netdissect.h"
#include "interface.h"

View File

@ -26,7 +26,6 @@ __RCSID("NetBSD: print-juniper.c,v 1.3 2007/07/25 06:31:32 dogcow Exp ");
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"

View File

@ -27,7 +27,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -32,7 +32,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "netdissect.h"
#include "interface.h"

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -35,7 +35,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "extract.h"
#include "interface.h"

View File

@ -8,7 +8,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "netdissect.h"
#include "interface.h"

View File

@ -40,7 +40,6 @@
#include <net/if_ppp.h>
#endif
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"

View File

@ -27,7 +27,6 @@
#include <stdio.h>
#include <string.h>
#include <pcap.h>
#include "interface.h"
#include "addrtoname.h"

View File

@ -40,7 +40,6 @@ struct mbuf;
struct rtentry;
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -26,7 +26,6 @@
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include <pcap.h>
#include "interface.h"
#include "extract.h"

View File

@ -30,7 +30,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"

1
util.c
View File

@ -31,7 +31,6 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <pcap.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>