summaryrefslogtreecommitdiff
path: root/gtk/capture_info_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-12-29 09:09:35 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-12-29 09:09:35 +0000
commit2ed93e96bd6c630a9171ea5d5217098fbfa76746 (patch)
treede1cdbec9c926a405377e4e9006c3bfcd8d5161b /gtk/capture_info_dlg.c
parentf1deabed568a18c05afdca5f4898fc9e13f71e91 (diff)
downloadwireshark-2ed93e96bd6c630a9171ea5d5217098fbfa76746.tar.gz
Don't use a global capture_opts in the capturing engine (this isn't a good idea). Do some more "housekeeping" in the capturing part.
Hopefully the unspecified forward declaration of capture_options_t in main.h is portable, but buildbot will tell me. This way I need the internals of that struct only at the places I really use it. svn path=/trunk/; revision=12853
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r--gtk/capture_info_dlg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index dd7385a63e..8738c5b9a5 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -40,6 +40,7 @@
#include "capture_combo_utils.h"
#include "dlg_utils.h"
#include "ui_util.h"
+#include "main.h"
/* a single capture counter value (with title, pointer to value and GtkWidgets) */
/* as the packet_counts is a struct, not an array, keep a pointer to the */
@@ -71,7 +72,7 @@ pct(gint num, gint denom) {
static void
capture_info_delete_cb(GtkWidget *w _U_, GdkEvent *event _U_, gpointer data _U_) {
- capture_stop();
+ capture_stop(capture_opts->sync_mode);
}