diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-05-14 01:47:41 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-05-14 01:47:41 +0000 |
commit | 44af6ef887427d09d1f3e0465b964fd1c4395909 (patch) | |
tree | b536e8eee183ff80de1e82a6513650d3c4892826 /epan/dissectors/packet-tns.c | |
parent | cae5293711372f6a3a72517c122150242e983330 (diff) |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25290
Diffstat (limited to 'epan/dissectors/packet-tns.c')
-rw-r--r-- | epan/dissectors/packet-tns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c index 04ac945420..78e4eb522f 100644 --- a/epan/dissectors/packet-tns.c +++ b/epan/dissectors/packet-tns.c @@ -922,15 +922,15 @@ dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (pinfo->match_port == pinfo->destport) { - proto_tree_add_boolean_hidden(tns_tree, hf_tns_request, - tvb, offset, 0, TRUE); + hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_request, + tvb, offset, 0, TRUE); } else { hidden_item = proto_tree_add_boolean(tns_tree, hf_tns_response, tvb, offset, 0, TRUE); - PROTO_ITEM_SET_HIDDEN(hidden_item); } + PROTO_ITEM_SET_HIDDEN(hidden_item); } length = tvb_get_ntohs(tvb, offset); |