aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ascend.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-09 13:59:10 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-09 13:59:10 +0000
commite6238095506fea7978b5726764b15d432aa9d20f (patch)
tree6c0bbdab1d1e239f96992dd122b2a199bbfd4b96 /epan/dissectors/packet-ascend.c
parent22ff43e0bdf81c25319f8c72cc3156b29eccba6b (diff)
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25264
Diffstat (limited to 'epan/dissectors/packet-ascend.c')
-rw-r--r--epan/dissectors/packet-ascend.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ascend.c b/epan/dissectors/packet-ascend.c
index d9b439ba7f..9be0a2bfce 100644
--- a/epan/dissectors/packet-ascend.c
+++ b/epan/dissectors/packet-ascend.c
@@ -52,7 +52,7 @@ static void
dissect_ascend(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *fh_tree;
- proto_item *ti;
+ proto_item *ti, *hidden_item;
union wtap_pseudo_header *pseudo_header = pinfo->pseudo_header;
/* load the top pane info. This should be overwritten by
@@ -91,13 +91,15 @@ dissect_ascend(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pseudo_header->ascend.call_num);
proto_tree_add_uint(fh_tree, hf_chunk, tvb, 0, 0,
pseudo_header->ascend.chunk);
- proto_tree_add_uint_hidden(fh_tree, hf_session_id, tvb, 0, 0, 0);
+ hidden_item = proto_tree_add_uint(fh_tree, hf_session_id, tvb, 0, 0, 0);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
} else { /* It's wandsession data */
proto_tree_add_string(fh_tree, hf_user_name, tvb, 0, 0,
pseudo_header->ascend.user);
proto_tree_add_uint(fh_tree, hf_session_id, tvb, 0, 0,
pseudo_header->ascend.sess);
- proto_tree_add_uint_hidden(fh_tree, hf_chunk, tvb, 0, 0, 0);
+ hidden_item = proto_tree_add_uint(fh_tree, hf_chunk, tvb, 0, 0, 0);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
}
proto_tree_add_uint(fh_tree, hf_task, tvb, 0, 0, pseudo_header->ascend.task);
}