diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-12-14 07:29:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-12-14 07:29:38 +0000 |
commit | eaee2b68c511700b89997efa627146304c13887c (patch) | |
tree | 3e26508ca0699f96507b77641a4c3aaefa0af993 /capture_loop.h | |
parent | 1f5bf52d6b1c3bbd922fe226ae188363fa74754a (diff) | |
download | wireshark-eaee2b68c511700b89997efa627146304c13887c.tar.gz wireshark-eaee2b68c511700b89997efa627146304c13887c.tar.bz2 wireshark-eaee2b68c511700b89997efa627146304c13887c.zip |
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_loop.h')
-rw-r--r-- | capture_loop.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/capture_loop.h b/capture_loop.h index 4336927c4c..46133093b6 100644 --- a/capture_loop.h +++ b/capture_loop.h @@ -32,6 +32,14 @@ #ifndef __CAPTURE_LOOP_H__ #define __CAPTURE_LOOP_H__ +#ifndef _WIN32 +/* + * Get information about libpcap format from "wiretap/libpcap.h". + * XXX - can we just use pcap_open_offline() to read the pipe? + */ +#include "wiretap/libpcap.h" +#endif + /** Do the low-level work of a capture. * Returns TRUE if it succeeds, FALSE otherwise. */ extern int capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct pcap_stat *stats); |