diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-05-09 13:59:10 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-05-09 13:59:10 +0000 |
commit | e6238095506fea7978b5726764b15d432aa9d20f (patch) | |
tree | 6c0bbdab1d1e239f96992dd122b2a199bbfd4b96 /epan/dissectors/packet-afs.c | |
parent | 22ff43e0bdf81c25319f8c72cc3156b29eccba6b (diff) |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25264
Diffstat (limited to 'epan/dissectors/packet-afs.c')
-rw-r--r-- | epan/dissectors/packet-afs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c index a5819d99a6..4c61d7be4b 100644 --- a/epan/dissectors/packet-afs.c +++ b/epan/dissectors/packet-afs.c @@ -1421,6 +1421,7 @@ dissect_afs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) struct afs_request_key request_key, *new_request_key; struct afs_request_val *request_val=NULL; proto_tree *afs_tree, *afs_op_tree, *ti; + proto_item *hidden_item; int port, node, typenode, opcode; value_string const *vals; int offset = 0; @@ -1656,7 +1657,8 @@ dissect_afs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if ( typenode != 0 ) { /* indicate the type of request */ - proto_tree_add_boolean_hidden(afs_tree, typenode, tvb, offset, 0, 1); + hidden_item = proto_tree_add_boolean(afs_tree, typenode, tvb, offset, 0, 1); + PROTO_ITEM_SET_HIDDEN(hidden_item); } /* Process the packet according to what service it is */ |