diff options
-rw-r--r-- | epan/stats_tree.c | 6 | ||||
-rw-r--r-- | epan/stats_tree.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c index b93b0482ea..24f8df2df1 100644 --- a/epan/stats_tree.c +++ b/epan/stats_tree.c @@ -437,7 +437,7 @@ extern int create_node_with_parent_name(stats_tree* st, * using parent_name as parent node. * with_hash=TRUE to indicate that the created node will have a parent */ -extern guint8* manip_stat_node(manip_node_mode mode, stats_tree* st, const guint8* name, int parent_id, gboolean with_hash, gint value) { +extern int manip_stat_node(manip_node_mode mode, stats_tree* st, const guint8* name, int parent_id, gboolean with_hash, gint value) { stat_node* node = NULL; stat_node* parent = NULL; @@ -462,9 +462,9 @@ extern guint8* manip_stat_node(manip_node_mode mode, stats_tree* st, const guint } if (node) - return node->name; + return node->id; else - return NULL; + return -1; } diff --git a/epan/stats_tree.h b/epan/stats_tree.h index dbeb7c287b..2deb632574 100644 --- a/epan/stats_tree.h +++ b/epan/stats_tree.h @@ -122,7 +122,7 @@ extern int tick_pivot(stats_tree* st, * with_children=TRUE to indicate that the created node will be a parent */ typedef enum _manip_node_mode { MN_INCREASE, MN_SET } manip_node_mode; -extern guint8* manip_stat_node(manip_node_mode mode, +extern int manip_stat_node(manip_node_mode mode, stats_tree* st, const guint8* name, int parent_id, |