aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-radiotap.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-14 01:47:41 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-14 01:47:41 +0000
commitd363109f9a05c4de82a19c622a62b170eb1cbf6a (patch)
treeb536e8eee183ff80de1e82a6513650d3c4892826 /epan/dissectors/packet-radiotap.c
parent8f448cf521bfda575a8a50e2a2fba330c0bd26e3 (diff)
Fix some of the Errors/warnings detected by checkapi.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25290 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-radiotap.c')
-rw-r--r--epan/dissectors/packet-radiotap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-radiotap.c b/epan/dissectors/packet-radiotap.c
index 28ef6ce04c..14ecae904e 100644
--- a/epan/dissectors/packet-radiotap.c
+++ b/epan/dissectors/packet-radiotap.c
@@ -793,7 +793,7 @@ dissect_radiotap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *radiotap_tree = NULL;
proto_tree *pt, *present_tree = NULL;
proto_tree *ft, *flags_tree = NULL;
- proto_item *ti = NULL;
+ proto_item *ti = NULL, *hidden_item;
proto_item *hdr_fcs_ti = NULL;
int hdr_fcs_offset = 0;
int align_offset, offset;
@@ -1263,8 +1263,9 @@ dissect_radiotap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
else {
proto_item_append_text(hdr_fcs_ti,
" [incorrect, should be 0x%08x]", calc_fcs);
- proto_tree_add_boolean_hidden(radiotap_tree, hf_radiotap_fcs_bad,
+ hidden_item = proto_tree_add_boolean(radiotap_tree, hf_radiotap_fcs_bad,
tvb, hdr_fcs_offset, 4, TRUE);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
}
}
else {