diff options
-rw-r--r-- | file.c | 3 | ||||
-rw-r--r-- | print.c | 9 | ||||
-rw-r--r-- | proto_hier_stats.c | 5 | ||||
-rw-r--r-- | ui/gtk/dcerpc_stat.c | 3 | ||||
-rw-r--r-- | ui/gtk/io_stat.c | 3 | ||||
-rw-r--r-- | ui/gtk/proto_tree_model.c | 3 | ||||
-rw-r--r-- | ui/gtk/rtp_analysis.c | 3 | ||||
-rw-r--r-- | ui/qt/proto_tree.cpp | 3 |
8 files changed, 21 insertions, 11 deletions
@@ -3014,7 +3014,8 @@ match_subtree_text(proto_node *node, gpointer data) guint8 c_char; size_t c_match = 0; - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); if (mdata->frame_matched) { /* We already had a match; don't bother doing any more work. */ @@ -167,7 +167,8 @@ void proto_tree_print_node(proto_node *node, gpointer data) gchar label_str[ITEM_LABEL_LENGTH]; gchar *label_ptr; - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); /* Don't print invisible entries. */ if (PROTO_ITEM_IS_HIDDEN(node)) @@ -296,7 +297,8 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data) int i; gboolean wrap_in_fake_protocol; - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); /* Will wrap up top-level field items inside a fake protocol wrapper to preserve the PDML schema */ @@ -1553,7 +1555,8 @@ static void proto_tree_get_node_field_values(proto_node *node, gpointer data) call_data = (write_field_data_t *)data; fi = PNODE_FINFO(node); - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); field_index = g_hash_table_lookup(call_data->fields->field_indicies, fi->hfinfo->abbrev); if(NULL != field_index) { diff --git a/proto_hier_stats.c b/proto_hier_stats.c index 5ba3f97064..e01b3893aa 100644 --- a/proto_hier_stats.c +++ b/proto_hier_stats.c @@ -87,8 +87,9 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps, gu GNode *stat_node; finfo = PNODE_FINFO(ptree_node); - /* We don't fake protocol nodes we expect them to have a field_info */ - g_assert(finfo && "dissection with faked proto tree?"); + /* We don't fake protocol nodes we expect them to have a field_info. + * Dissection with faked proto tree? */ + g_assert(finfo); /* If the field info isn't related to a protocol but to a field, * don't count them, as they don't belong to any protocol. diff --git a/ui/gtk/dcerpc_stat.c b/ui/gtk/dcerpc_stat.c index 8f82c1d56e..7588700567 100644 --- a/ui/gtk/dcerpc_stat.c +++ b/ui/gtk/dcerpc_stat.c @@ -434,7 +434,8 @@ dcerpcstat_program_select(GtkWidget *prog_combo_box, gpointer user_data) g_signal_handlers_disconnect_by_func(vers_combo_box, G_CALLBACK(dcerpcstat_version_select), NULL ); ws_combo_box_clear_text_and_pointer(GTK_COMBO_BOX(vers_combo_box)); - g_assert((k != NULL) && "dcerpc_stat: invalid selection"); /* Somehow selected top level ?? */ + /* dcerpc_stat: invalid selection... somehow selected top level ?? */ + g_assert(k != NULL); dcerpc_uuid_program = &(k->uuid); /* re-create version menu */ diff --git a/ui/gtk/io_stat.c b/ui/gtk/io_stat.c index 1d579fd0aa..44954e80a8 100644 --- a/ui/gtk/io_stat.c +++ b/ui/gtk/io_stat.c @@ -1457,7 +1457,8 @@ iostat_init(const char *optarg _U_, void* userdata _U_) io_stat_reset(io); error_string=enable_graph(&io->graphs[0], NULL, NULL); - g_assert((error_string == NULL) && "Can't attach io_stat tap !"); + /* Can't attach io_stat tap ! */ + g_assert(error_string == NULL); #if 0 if(error_string){ diff --git a/ui/gtk/proto_tree_model.c b/ui/gtk/proto_tree_model.c index 3bef612946..d6ed53d200 100644 --- a/ui/gtk/proto_tree_model.c +++ b/ui/gtk/proto_tree_model.c @@ -195,7 +195,8 @@ proto_tree_model_get_value(GtkTreeModel *tree_model, GtkTreeIter *iter, gint col node = iter->user_data; fi = PNODE_FINFO(node); - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); switch (column) { case 0: diff --git a/ui/gtk/rtp_analysis.c b/ui/gtk/rtp_analysis.c index 43185ef389..3071841df2 100644 --- a/ui/gtk/rtp_analysis.c +++ b/ui/gtk/rtp_analysis.c @@ -3588,7 +3588,8 @@ static gboolean process_node(proto_node *ptree_node, header_field_info *hfinform finfo = PNODE_FINFO(ptree_node); - g_assert(finfo && "Caller passed top of the protocol tree. Expected child node"); + /* Caller passed top of the protocol tree. Expected child node */ + g_assert(finfo); if (hfinformation==(finfo->hfinfo)) { hfssrc = proto_registrar_get_byname(proto_field); diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 2535f579d3..09157d96c3 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -51,7 +51,8 @@ proto_tree_draw_node(proto_node *node, gpointer data) gchar *label_ptr; gboolean is_leaf; - g_assert(fi && "dissection with an invisible proto tree?"); + /* dissection with an invisible proto tree? */ + g_assert(fi); if (PROTO_ITEM_IS_HIDDEN(node) && !prefs.display_hidden_proto_items) return; |