diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-28 23:56:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-28 23:56:29 +0000 |
commit | 00fcdc09007d6c65257c8a00693d93046977fcb3 (patch) | |
tree | cb909e1bd0ac75967663e61754eac3a7181148b5 /util.c | |
parent | 22a76b4ca65ab6e710e2c5f9fec5d2153fbcdc33 (diff) | |
download | wireshark-00fcdc09007d6c65257c8a00693d93046977fcb3.tar.gz |
There's no need for a member of a "capture_file" structure holding a
compiled capture filter program, so remove it, and remove the include of
<pcap.h> from "file.h"; instead, have local "struct bpf_program"
structures where needed, and have those files that need stuff from
<pcap.h> include it.
This cleans stuff up a bit, and should eliminate a pile of compile
warnings with Visual C++ due to <pcap.h> and some GTK+/GLib header file
(or files they include) both defining "inline".
svn path=/trunk/; revision=2954
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* util.c * Utility routines * - * $Id: util.c,v 1.48 2000/12/23 19:50:36 guy Exp $ + * $Id: util.c,v 1.49 2001/01/28 23:56:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -75,6 +75,8 @@ typedef int mode_t; /* for win32 */ #include <sys/ioctl.h> #endif +#include <pcap.h> + #ifndef WIN32 #include <net/if.h> #endif |