aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lmp.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-lmp.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-lmp.c')
-rw-r--r--epan/dissectors/packet-lmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lmp.c b/epan/dissectors/packet-lmp.c
index f3437d740a..b90b711c2a 100644
--- a/epan/dissectors/packet-lmp.c
+++ b/epan/dissectors/packet-lmp.c
@@ -1311,6 +1311,7 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *lmp_object_header_tree;
proto_tree *lmp_flags_tree;
proto_tree *lmp_subobj_tree;
+ proto_item *hidden_item;
guint8 version;
guint8 flags;
@@ -1371,9 +1372,10 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if ((message_type >= LMP_MSG_CONFIG && message_type <= LMP_MSG_CHANNEL_STATUS_RESP) ||
(message_type >= LMP_MSG_SERVICE_CONFIG && message_type <= LMP_MSG_SERVICE_CONFIG_NACK) ||
(message_type >= LMP_MSG_DISCOVERY_RESP && message_type <= LMP_MSG_DISCOVERY_RESP_NACK) ) {
- proto_tree_add_boolean_hidden(lmp_header_tree,
+ hidden_item = proto_tree_add_boolean(lmp_header_tree,
lmp_filter[lmp_msg_to_filter_num(message_type)],
tvb, offset+3, 1, 1);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
} else {
proto_tree_add_protocol_format(lmp_header_tree, proto_malformed, tvb, offset+3, 1,
"Invalid message type: %u", message_type);
@@ -1417,8 +1419,9 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
type = tvb_get_guint8(tvb, offset);
negotiable = (type >> 7); type &= 0x7f;
object_type = val_to_str(class, lmp_class_vals, "Unknown");
- proto_tree_add_uint_hidden(lmp_tree, lmp_filter[LMPF_OBJECT], tvb,
+ hidden_item = proto_tree_add_uint(lmp_tree, lmp_filter[LMPF_OBJECT], tvb,
offset, 1, class);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
if (lmp_valid_class(class)) {
ti = proto_tree_add_item(lmp_tree,