aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-25 05:14:38 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-25 05:14:38 +0000
commit0dfdc6786d902c462371ab40e5691f195247dc7c (patch)
treed6b3f26ebc69341c8c56b71346287ee108f97f18 /epan/stats_tree.c
parent7c0cd96a8270a16559b19966b4f83574b6de2094 (diff)
change to int the return type of manip_stat_node() so that it can be used as a parent
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13508 f5534014-38df-0310-8fa8-9805f1628bb7
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;
}