diff options
Diffstat (limited to 'epan/dissectors/packet-lnpdqp.c')
-rw-r--r-- | epan/dissectors/packet-lnpdqp.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/epan/dissectors/packet-lnpdqp.c b/epan/dissectors/packet-lnpdqp.c index 700d5b6ce9..07a96522d8 100644 --- a/epan/dissectors/packet-lnpdqp.c +++ b/epan/dissectors/packet-lnpdqp.c @@ -159,12 +159,6 @@ static const value_string lnpdqp_np_vals[] = { { 0, NULL } }; -static dgt_set_t Dgt_tbcd = { - { - /* 0 1 2 3 4 5 6 7 8 9 a b c d e */ - '0','1','2','3','4','5','6','7','8','9','?','B','C','*','#' - } -}; /* * OriginatingStationType ::= OCTET STRING (SIZE(1)) * The following codes are used in the originating line information field: @@ -199,7 +193,7 @@ dissect_lnpdqp_digits_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr guint8 octet , no_of_digits; int offset = 0; - const char *digit_str; + char *digit_str; proto_tree *subtree; @@ -226,8 +220,7 @@ dissect_lnpdqp_digits_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr if(no_of_digits == 0) return; offset++; - digit_str = tvb_bcd_dig_to_wmem_packet_str(tvb, offset, tvb_reported_length_remaining(tvb,offset), &Dgt_tbcd, FALSE); - proto_tree_add_string(subtree, hf_lnpdqp_bcd_digits, tvb, offset, -1, digit_str); + proto_tree_add_item_ret_display_string(subtree, hf_lnpdqp_bcd_digits, tvb, offset, -1, ENC_KEYPAD_BC_TBCD, wmem_packet_scope(), &digit_str); proto_item_append_text(actx->created_item, " - %s", digit_str); break; case 2: @@ -403,7 +396,7 @@ static int dissect_ProvideInstructionArg_PDU(tvbuff_t *tvb _U_, packet_info *pin /*--- End of included file: packet-lnpdqp-fn.c ---*/ -#line 224 "./asn1/lnpdqp/packet-lnpdqp-template.c" +#line 217 "./asn1/lnpdqp/packet-lnpdqp-template.c" static int dissect_lnpdqp_cc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_) @@ -530,7 +523,7 @@ void proto_register_lnpdqp(void) { "OriginatingStationType", HFILL }}, /*--- End of included file: packet-lnpdqp-hfarr.c ---*/ -#line 322 "./asn1/lnpdqp/packet-lnpdqp-template.c" +#line 315 "./asn1/lnpdqp/packet-lnpdqp-template.c" }; /* List of subtrees */ @@ -547,7 +540,7 @@ void proto_register_lnpdqp(void) { &ett_lnpdqp_ServiceKey, /*--- End of included file: packet-lnpdqp-ettarr.c ---*/ -#line 331 "./asn1/lnpdqp/packet-lnpdqp-template.c" +#line 324 "./asn1/lnpdqp/packet-lnpdqp-template.c" }; /* Register protocol */ |