aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-igmp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-05-14 01:47:41 +0000
committerBill Meier <wmeier@newsguy.com>2008-05-14 01:47:41 +0000
commit44af6ef887427d09d1f3e0465b964fd1c4395909 (patch)
treeb536e8eee183ff80de1e82a6513650d3c4892826 /epan/dissectors/packet-igmp.c
parentcae5293711372f6a3a72517c122150242e983330 (diff)
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25290
Diffstat (limited to 'epan/dissectors/packet-igmp.c')
-rw-r--r--epan/dissectors/packet-igmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-igmp.c b/epan/dissectors/packet-igmp.c
index d4a1c7f999..c07e9db71a 100644
--- a/epan/dissectors/packet-igmp.c
+++ b/epan/dissectors/packet-igmp.c
@@ -330,6 +330,7 @@ void igmp_checksum(proto_tree *tree, tvbuff_t *tvb, int hf_index,
{
guint16 cksum, hdrcksum;
vec_t cksum_vec[1];
+ proto_item *hidden_item;
if (len == 0) {
/*
@@ -354,8 +355,9 @@ void igmp_checksum(proto_tree *tree, tvbuff_t *tvb, int hf_index,
tvb, 2, 2, hdrcksum,
"Header checksum: 0x%04x [correct]", hdrcksum);
} else {
- proto_tree_add_boolean_hidden(tree, hf_index_bad,
+ hidden_item = proto_tree_add_boolean(tree, hf_index_bad,
tvb, 2, 2, TRUE);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
proto_tree_add_uint_format(tree, hf_index,
tvb, 2, 2, hdrcksum,
"Header checksum: 0x%04x [incorrect, should be 0x%04x]", hdrcksum,in_cksum_shouldbe(hdrcksum,cksum));