diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-10 21:03:31 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-10 21:03:31 +0000 |
commit | 5625c461d069f539ac1710efc1c18def0514d4d5 (patch) | |
tree | 61a9ad9880dc04338ae09056ba41b214c6b5c606 | |
parent | 163f2b61a857b93126e1f84f8686555b9121b989 (diff) |
bugfix: call to cf_cb_live_capture_..._started with correct parameter
svn path=/trunk/; revision=14045
-rw-r--r-- | capture.c | 4 | ||||
-rw-r--r-- | gtk/main.c | 12 |
2 files changed, 4 insertions, 12 deletions
@@ -222,9 +222,9 @@ capture_input_new_file(capture_options *capture_opts, gchar *new_file) break; } - cf_callback_invoke(cf_cb_live_capture_update_started, capture_opts->cf); + cf_callback_invoke(cf_cb_live_capture_update_started, capture_opts); } else { - cf_callback_invoke(cf_cb_live_capture_fixed_started, capture_opts->cf); + cf_callback_invoke(cf_cb_live_capture_fixed_started, capture_opts); } diff --git a/gtk/main.c b/gtk/main.c index fa006d15fa..452ffc061f 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1306,11 +1306,7 @@ main_cf_cb_live_capture_update_started(capture_options *capture_opts) packets (yes, I know, we don't have any *yet*). */ set_menus_for_captured_packets(TRUE); - if(capture_opts->iface) { - capture_msg = g_strdup_printf(" %s: <live capture in progress>", get_interface_descriptive_name(capture_opts->iface)); - } else { - capture_msg = g_strdup_printf(" <live capture in progress>"); - } + capture_msg = g_strdup_printf(" %s: <live capture in progress>", get_interface_descriptive_name(capture_opts->iface)); statusbar_push_file_msg(capture_msg); @@ -1333,11 +1329,7 @@ main_cf_cb_live_capture_fixed_started(capture_options *capture_opts) packets (yes, I know, we don't have any *yet*). */ /*set_menus_for_captured_packets(TRUE);*/ - if(capture_opts->iface) { - capture_msg = g_strdup_printf(" %s: <live capture in progress>", get_interface_descriptive_name(capture_opts->iface)); - } else { - capture_msg = g_strdup_printf(" <live capture in progress>"); - } + capture_msg = g_strdup_printf(" %s: <live capture in progress>", get_interface_descriptive_name(capture_opts->iface)); statusbar_push_file_msg(capture_msg); |