summaryrefslogtreecommitdiff
path: root/epan/stats_tree.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-02-25 05:14:38 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-02-25 05:14:38 +0000
commit8d189d27ccdcc0e7b4842e3588c7ec1b537487b3 (patch)
treed6b3f26ebc69341c8c56b71346287ee108f97f18 /epan/stats_tree.c
parent51913513e2e3e241265421d3af46072fa77f70b1 (diff)
downloadwireshark-8d189d27ccdcc0e7b4842e3588c7ec1b537487b3.tar.gz
change to int the return type of manip_stat_node() so that it can be used as a parent
svn path=/trunk/; revision=13508
Diffstat (limited to 'epan/stats_tree.c')
-rw-r--r--epan/stats_tree.c6
1 files changed, 3 insertions, 3 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;
}