aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-24 03:38:15 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-24 03:38:15 +0000
commite66a2f63a598f3d762230b3a81ba0d655e2ea836 (patch)
tree85804bf42e519f493c87fe87e821d9c3cedfbec4 /gtk/summary_dlg.c
parent2cc3382896bc4802d384ed2c7799aa65ce235d59 (diff)
Add gtk/capture_globals.h, to declare global_capture_opts, so files that
don't need global_capture_opts don't need to have it declared and thus don't need capture_options defined. Include gtk/capture_globals in the files in question. Change some more capture_opts references to refer to global_capture_opts. Change some global_capture_opts references in routines with a capture_opts argument to refer to capture_opts. The structure type is capture_options, not capture_opts; fix some references. Include <sys/types.h>, if it's present, in capture_opts.h, so we get gid_t defined. Clean up indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25574 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index 628ddf30bc..f6a2db7f29 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -44,6 +44,7 @@
#ifdef HAVE_LIBPCAP
#include "../capture.h"
#include "gtk/main.h"
+#include "gtk/capture_globals.h"
#endif
#include "gtk/summary_dlg.h"
@@ -124,7 +125,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
/* initial computations */
summary_fill_in(&cfile, &summary);
#ifdef HAVE_LIBPCAP
- summary_fill_in_capture(capture_opts, &summary);
+ summary_fill_in_capture(&global_capture_opts, &summary);
#endif
seconds = summary.stop_time - summary.start_time;
disp_seconds = summary.filtered_stop - summary.filtered_start;