aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bootp.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-bootp.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-bootp.c')
-rw-r--r--epan/dissectors/packet-bootp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index 86eef5bd89..0de17f837d 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -3305,7 +3305,7 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *bp_tree;
proto_item *ti;
proto_tree *flag_tree;
- proto_item *fi;
+ proto_item *fi, *hidden_item;
guint8 op;
guint8 htype, hlen;
const guint8 *haddr;
@@ -3520,8 +3520,10 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
voff = VENDOR_INFO_OFFSET;
- if (dhcp_type != NULL)
- proto_tree_add_boolean_hidden(bp_tree, hf_bootp_dhcp, tvb, 0, 0, 1);
+ if (dhcp_type != NULL) {
+ hidden_item = proto_tree_add_boolean(bp_tree, hf_bootp_dhcp, tvb, 0, 0, 1);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
+ }
if (tvb_bytes_exist(tvb, voff, 4) &&
(tvb_get_ntohl(tvb, voff) == 0x63825363)) {
ip_addr = tvb_get_ipv4(tvb, voff);