summaryrefslogtreecommitdiff
path: root/capture-pcap-util.h
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.h
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.h')
-rw-r--r--capture-pcap-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture-pcap-util.h b/capture-pcap-util.h
index d9cd527364..1b78718341 100644
--- a/capture-pcap-util.h
+++ b/capture-pcap-util.h
@@ -91,8 +91,8 @@ typedef struct {
char *description;
} data_link_info_t;
-int get_pcap_linktype(pcap_t *pch, char *devname);
-GList *get_pcap_linktype_list(char *devname, char *err_buf);
+int get_pcap_linktype(pcap_t *pch, const char *devname);
+GList *get_pcap_linktype_list(const char *devname, char *err_buf);
void free_pcap_linktype_list(GList *linktype_list);
const char *set_pcap_linktype(pcap_t *pch, char *devname, int dlt);