diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-09 13:59:10 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-09 13:59:10 +0000 |
commit | 99c49cff7c043bd937d226b18c55601493a1d9af (patch) | |
tree | 6c0bbdab1d1e239f96992dd122b2a199bbfd4b96 /epan/dissectors/packet-ascend.c | |
parent | 60a2a14ddf23269602d392cc7a319e8834269c39 (diff) |
Fix some of the Errors/warnings detected by checkapi.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25264 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ascend.c')
-rw-r--r-- | epan/dissectors/packet-ascend.c | 8 |
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); } |