diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-06-24 03:38:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-06-24 03:38:15 +0000 |
commit | f441b8941eee0a6878500e95557d136f4c63e9a4 (patch) | |
tree | 85804bf42e519f493c87fe87e821d9c3cedfbec4 /gtk/main_statusbar.c | |
parent | f8b78637532b77b7feabadea280ca900f7a72292 (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.
svn path=/trunk/; revision=25574
Diffstat (limited to 'gtk/main_statusbar.c')
-rw-r--r-- | gtk/main_statusbar.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/main_statusbar.c b/gtk/main_statusbar.c index 97fb207bfd..da1e2eddb8 100644 --- a/gtk/main_statusbar.c +++ b/gtk/main_statusbar.c @@ -48,6 +48,7 @@ #include "gtk/main_statusbar.h" #include "gtk/gui_utils.h" #include "gtk/gtkglobals.h" +#include "gtk/capture_globals.h" #include "gtk/expert_comp_dlg.h" #include "gtk/profile_dlg.h" @@ -578,13 +579,13 @@ statusbar_cf_live_capture_update_started_cb(capture_options *capture_opts) statusbar_pop_file_msg(); - if(global_capture_opts.iface) { + if(capture_opts->iface) { capture_msg = g_strdup_printf(" %s: <live capture in progress> to file: %s", - get_iface_description(&global_capture_opts), - (global_capture_opts.save_file) ? global_capture_opts.save_file : ""); + get_iface_description(capture_opts), + (capture_opts->save_file) ? capture_opts->save_file : ""); } else { capture_msg = g_strdup_printf(" <live capture in progress> to file: %s", - (global_capture_opts.save_file) ? global_capture_opts.save_file : ""); + (capture_opts->save_file) ? capture_opts->save_file : ""); } statusbar_push_file_msg(capture_msg); @@ -639,8 +640,8 @@ statusbar_cf_live_capture_fixed_started_cb(capture_options *capture_opts) statusbar_pop_file_msg(); capture_msg = g_strdup_printf(" %s: <live capture in progress> to file: %s", - get_iface_description(&global_capture_opts), - (global_capture_opts.save_file) ? global_capture_opts.save_file : ""); + get_iface_description(capture_opts), + (capture_opts->save_file) ? capture_opts->save_file : ""); statusbar_push_file_msg(capture_msg); gtk_statusbar_push(GTK_STATUSBAR(packets_bar), packets_ctx, " Packets: 0"); |