aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-14 07:29:38 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-14 07:29:38 +0000
commit918ca24baa2427959a3522176341f9643dd689df (patch)
tree3e26508ca0699f96507b77641a4c3aaefa0af993 /capture-pcap-util.c
parent0bb88bca5b4bcfb70880d9ee01cfa5ffb8b3976d (diff)
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 <pcap.h> 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
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r--capture-pcap-util.c6
1 files changed, 3 insertions, 3 deletions
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;