diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-28 23:56:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-28 23:56:29 +0000 |
commit | c5732e87749fbb6a2cb2f29f09fe2c1281fe8153 (patch) | |
tree | cb909e1bd0ac75967663e61754eac3a7181148b5 /gtk/capture_dlg.c | |
parent | 1745222c7a427772c09a4a477ff5af00762ebcc8 (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".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2954 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 4 |
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 |