From 918ca24baa2427959a3522176341f9643dd689df Mon Sep 17 00:00:00 2001 From: guy 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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16791 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture-pcap-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'capture-pcap-util.c') diff --git a/capture-pcap-util.c b/capture-pcap-util.c index c6e205f077..db32cfb4c7 100644 --- a/capture-pcap-util.c +++ b/capture-pcap-util.c @@ -61,7 +61,7 @@ * rest-of-the-universe libpcap. */ int -get_pcap_linktype(pcap_t *pch, char *devname +get_pcap_linktype(pcap_t *pch, const char *devname #ifndef _AIX _U_ #endif @@ -69,7 +69,7 @@ get_pcap_linktype(pcap_t *pch, char *devname { int linktype; #ifdef _AIX - char *ifacename; + const char *ifacename; #endif linktype = pcap_datalink(pch); @@ -348,7 +348,7 @@ create_data_link_info(int dlt) } GList * -get_pcap_linktype_list(char *devname, char *err_buf) +get_pcap_linktype_list(const char *devname, char *err_buf) { GList *linktype_list = NULL; pcap_t *pch; -- cgit v1.2.3