From 8df2857bc1082797cc7052eb5a6ebb45ac92e4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 5 Feb 2016 13:44:57 +0000 Subject: TCAP: Fix warning [-Wunused-function] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie30f39cf1d79f571824cb02583130e9ec828ede4 Reviewed-on: https://code.wireshark.org/review/13788 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- asn1/tcap/tcap.cnf | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'asn1') diff --git a/asn1/tcap/tcap.cnf b/asn1/tcap/tcap.cnf index 0629f7616a..f196465936 100644 --- a/asn1/tcap/tcap.cnf +++ b/asn1/tcap/tcap.cnf @@ -126,10 +126,15 @@ ABRT-apdu/_untag/user-information abrt_user_information tvbuff_t *parameter_tvb; guint8 len, i; proto_tree *subtree; - subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_otid, NULL, "Source Transaction ID"); + int saved_offset; - dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid, NULL); + hf_index = hf_tcap_tid; + saved_offset = offset; +%(DEFAULT_BODY)s PROTO_ITEM_SET_HIDDEN(actx->created_item); + offset = saved_offset; + + subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_otid, NULL, "Source Transaction ID"); offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_otid, ¶meter_tvb); @@ -152,25 +157,29 @@ ABRT-apdu/_untag/user-information abrt_user_information if (len) { col_append_str(actx->pinfo->cinfo, COL_INFO, "otid("); - for(i=0;ipinfo->cinfo, COL_INFO, "%%02x",tvb_get_guint8(parameter_tvb,i)); + } col_append_str(actx->pinfo->cinfo, COL_INFO, ") "); } - } - #---------------------------------------------------------------------------------------- #.FN_BODY DestTransactionID tvbuff_t *parameter_tvb; guint8 len , i; proto_tree *subtree; - subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_dtid, NULL, "Destination Transaction ID"); + int saved_offset; - dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid, NULL); + hf_index = hf_tcap_tid; + saved_offset = offset; +%(DEFAULT_BODY)s PROTO_ITEM_SET_HIDDEN(actx->created_item); + offset = saved_offset; + + subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_dtid, NULL, "Destination Transaction ID"); offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_dtid, - ¶meter_tvb); + ¶meter_tvb); if (parameter_tvb) { len = tvb_reported_length_remaining(parameter_tvb, 0); @@ -191,8 +200,9 @@ ABRT-apdu/_untag/user-information abrt_user_information if (len) { col_append_str(actx->pinfo->cinfo, COL_INFO, "dtid("); - for(i=0;ipinfo->cinfo, COL_INFO, "%%02x",tvb_get_guint8(parameter_tvb,i)); + } col_append_str(actx->pinfo->cinfo, COL_INFO, ") "); } } -- cgit v1.2.1