aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isup.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-15 01:44:53 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-15 01:44:53 +0000
commit137ad5e60845a4f203993b2700f1b81decc0dd79 (patch)
tree3d1112b08a02413f491bfad24d294022e8ef867c /epan/dissectors/packet-isup.c
parentaf3da03792c66a7b3564950db1cb09b8e5bd5a25 (diff)
Fix some of the Errors/warnings detected by checkapi.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25305 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-isup.c')
-rw-r--r--epan/dissectors/packet-isup.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/dissectors/packet-isup.c b/epan/dissectors/packet-isup.c
index b24444603e..cb089a5a7e 100644
--- a/epan/dissectors/packet-isup.c
+++ b/epan/dissectors/packet-isup.c
@@ -1891,6 +1891,7 @@ dissect_isup_called_party_number_parameter(tvbuff_t *parameter_tvb, proto_tree *
{
proto_item *address_digits_item;
proto_tree *address_digits_tree;
+ proto_item *hidden_item;
guint8 indicators1, indicators2;
guint8 address_digit_pair=0;
gint offset=0;
@@ -1944,8 +1945,9 @@ dissect_isup_called_party_number_parameter(tvbuff_t *parameter_tvb, proto_tree *
e164_info.E164_number_str = called_number;
e164_info.E164_number_length = i - 1;
dissect_e164_number(parameter_tvb, address_digits_tree, 2, (offset - 2), e164_info);
- proto_tree_add_string_hidden(address_digits_tree, hf_isup_called, parameter_tvb,
- offset - length, length, called_number);
+ hidden_item = proto_tree_add_string(address_digits_tree, hf_isup_called, parameter_tvb,
+ offset - length, length, called_number);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
} else {
proto_tree_add_string(address_digits_tree, hf_isup_called, parameter_tvb,
offset - length, length, called_number);
@@ -3646,6 +3648,7 @@ dissect_isup_calling_party_number_parameter(tvbuff_t *parameter_tvb, proto_tree
{
proto_item *address_digits_item;
proto_tree *address_digits_tree;
+ proto_item *hidden_item;
guint8 indicators1, indicators2;
guint8 address_digit_pair=0;
gint offset=0;
@@ -3703,8 +3706,9 @@ dissect_isup_calling_party_number_parameter(tvbuff_t *parameter_tvb, proto_tree
e164_info.E164_number_str = calling_number;
e164_info.E164_number_length = i - 1;
dissect_e164_number(parameter_tvb, address_digits_tree, 2, (offset - 2), e164_info);
- proto_tree_add_string_hidden(address_digits_tree, hf_isup_calling, parameter_tvb,
+ hidden_item = proto_tree_add_string(address_digits_tree, hf_isup_calling, parameter_tvb,
offset - length, length, calling_number);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
} else {
proto_tree_add_string(address_digits_tree, hf_isup_calling, parameter_tvb,
offset - length, length, calling_number);