From eaee2b68c511700b89997efa627146304c13887c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 14 Dec 2005 07:29:38 +0000 Subject: Constify a bunch of arguments and variables, to squelch compiler warnings. Include "wiretap/libpcap.h" in "capture_loop.h", to get its declarations of data structures for headers in libpcap files. This lets us remove the includes of "wiretap/libpcap.h from files including "capture_loop.h". Make "log_func_ignore()" in "tethereal.c" static, and declare some of its arguments unused. Also get rid of an unused variable. Include before including "wiretap/wtap-capture.h", to declare "struct pcap_pkthdr". svn path=/trunk/; revision=16791 --- capture_loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'capture_loop.c') diff --git a/capture_loop.c b/capture_loop.c index db0664e454..4955b136ea 100644 --- a/capture_loop.c +++ b/capture_loop.c @@ -66,12 +66,11 @@ #include +#include + #include "wiretap/wtap.h" #include "wiretap/wtap-capture.h" -#include "wiretap/libpcap.h" - -#include #include "capture-pcap-util.h" #include "capture.h" -- cgit v1.2.3