diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/iax2_analysis.c | 10 | ||||
-rw-r--r-- | gtk/voip_calls.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gtk/iax2_analysis.c b/gtk/iax2_analysis.c index 8cde90b819..0a613862c1 100644 --- a/gtk/iax2_analysis.c +++ b/gtk/iax2_analysis.c @@ -608,7 +608,7 @@ static const GdkColor COLOR_FOREGROUND = {0, 0x0000, 0x0000, 0x0000}; /* adds statistics information from the packet to the list */ static int iax2_packet_add_info(GtkWidget *list, user_data_t * user_data, tap_iax2_stat_t *statinfo, packet_info *pinfo, - const struct _iax2_info_t *iax2info) + const struct _iax2_info_t *iax2info _U_) { guint16 msecs; gchar timeStr[32]; @@ -1833,7 +1833,7 @@ static void on_refresh_bt_clicked(GtkWidget *bt _U_, user_data_t *user_data _U_) error_string = register_tap_listener("IAX2", user_data, NULL, iax2_reset, iax2_packet, iax2_draw); if (error_string != NULL) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str); + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str); g_string_free(error_string, TRUE); return; } @@ -3245,7 +3245,7 @@ static void create_iax2_dialog(user_data_t* user_data) gtk_widget_grab_focus(list_fwd); } - +#if 0 /****************************************************************************/ static gboolean process_node(proto_node *ptree_node, header_field_info *hfinformation, const gchar* proto_field, guint32* p_result) @@ -3315,7 +3315,7 @@ static gboolean get_int_value_from_proto_tree(proto_tree *protocol_tree, } return process_node(ptree_node, hfinformation, proto_field, p_result); } - +#endif /****************************************************************************/ void iax2_analysis( @@ -3436,7 +3436,7 @@ static void iax2_analysis_cb(GtkWidget *w _U_, gpointer data _U_) /* Try to compile the filter. */ g_strlcpy(filter_text,"iax2 && (ip || ipv6)",256); if (!dfilter_compile(filter_text, &sfcode)) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, dfilter_error_msg); + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", dfilter_error_msg); return; } /* we load the current file into cf variable */ diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c index e89ab2ee85..9aee20d43a 100644 --- a/gtk/voip_calls.c +++ b/gtk/voip_calls.c @@ -124,7 +124,7 @@ static h245_labels_t h245_labels; /****************************************************************************/ /* the one and only global voip_calls_tapinfo_t structure */ static voip_calls_tapinfo_t the_tapinfo_struct = - {0, NULL, 0, NULL, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + {0, NULL, 0, NULL, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; /* the one and only global voip_rtp_tapinfo_t structure */ static voip_rtp_tapinfo_t the_tapinfo_rtp_struct = @@ -3888,7 +3888,7 @@ iax2_calls_init_tap(void) voip_calls_dlg_draw ); if (error_string != NULL) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str); g_string_free(error_string, TRUE); exit(1); |