summaryrefslogtreecommitdiff
path: root/capture-pcap-util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-12-14 07:29:38 +0000
committerGuy Harris <guy@alum.mit.edu>2005-12-14 07:29:38 +0000
commiteaee2b68c511700b89997efa627146304c13887c (patch)
tree3e26508ca0699f96507b77641a4c3aaefa0af993 /capture-pcap-util.c
parent1f5bf52d6b1c3bbd922fe226ae188363fa74754a (diff)
downloadwireshark-eaee2b68c511700b89997efa627146304c13887c.tar.gz
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". svn path=/trunk/; revision=16791
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;