aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.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 /gtk/capture_dlg.c
parent22a76b4ca65ab6e710e2c5f9fec5d2153fbcdc33 (diff)
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 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 8ed93d9077..1ae2796beb 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1,7 +1,7 @@
/* capture_dlg.c
* Routines for packet capture windows
*
- * $Id: capture_dlg.c,v 1.36 2001/01/02 01:32:21 guy Exp $
+ * $Id: capture_dlg.c,v 1.37 2001/01/28 23:56:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -41,6 +41,8 @@
#include <time.h>
+#include <pcap.h>
+
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif