summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-28 23:56:29 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-28 23:56:29 +0000
commit00fcdc09007d6c65257c8a00693d93046977fcb3 (patch)
treecb909e1bd0ac75967663e61754eac3a7181148b5 /util.c
parent22a76b4ca65ab6e710e2c5f9fec5d2153fbcdc33 (diff)
downloadwireshark-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.c b/util.c
index 0bd6787d19..1ff362902c 100644
--- a/util.c
+++ b/util.c
@@ -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