summaryrefslogtreecommitdiff
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
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
-rw-r--r--epan/stats_tree.c6
-rw-r--r--epan/stats_tree.h2
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,