aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-10 21:03:31 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-10 21:03:31 +0000
commit105a180df11576df82c4177dac771e4d99f03f49 (patch)
tree61a9ad9880dc04338ae09056ba41b214c6b5c606
parent6eac41e3bb42e73f9dce31ee5bc4c235b2d76730 (diff)
bugfix: call to cf_cb_live_capture_..._started with correct parameter
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14045 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--capture.c4
-rw-r--r--gtk/main.c12
2 files changed, 4 insertions, 12 deletions
diff --git a/capture.c b/capture.c
index 3893587ed0..271849be40 100644
--- a/capture.c
+++ b/capture.c
@@ -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);