diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-28 19:41:24 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-29 03:30:11 +0000 |
commit | f777d68bd6b31102d82932875b577018d42e23e8 (patch) | |
tree | 24e2f58719fadb00c7657f1b5b59fa89c5727012 /epan/dissectors/packet-ansi_a.c | |
parent | 5e6d45ca98bb8c368b73084785d90fa3b0b6291f (diff) |
Fix Ubuntu compile error.
Should be using the dgt_set_t variables provided in packet-ansi_a.c and packet-gsm_a_dtap.c
Change-Id: I5bd95a2d31d4419faae0943ae0ab524e796d7d92
Reviewed-on: https://code.wireshark.org/review/12274
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-ansi_a.c')
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index cff18d7436..484a2dcb36 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -1414,34 +1414,24 @@ typedef struct ansi_a_shared_data_t } ansi_a_shared_data_t; -typedef struct ansi_a_dgt_set_t -{ - /* - * would typically be 15 but to allow MEID decoding this - * needs to have room for full hexadecimal representation - */ - unsigned char out[16]; -} -ansi_a_dgt_set_t; - /* * As per A.S0001 Called Party BCD Number */ -static ansi_a_dgt_set_t Dgt_tbcd = { +static dgt_set_t Dgt_tbcd = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ '0','1','2','3','4','5','6','7','8','9','*','#','a','b','c', 0 } }; -static ansi_a_dgt_set_t Dgt_msid = { +static dgt_set_t Dgt_msid = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ '0','1','2','3','4','5','6','7','8','9','?','?','?','?','?', 0 } }; -static ansi_a_dgt_set_t Dgt_meid = { +static dgt_set_t Dgt_meid = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' @@ -1451,7 +1441,7 @@ static ansi_a_dgt_set_t Dgt_meid = { /* * As per C.S0005 Table 2.7.1.3.2.4-4 and IS-634.400A 6.2.2.57 */ -static ansi_a_dgt_set_t Dgt_dtmf = { +static dgt_set_t Dgt_dtmf = { { /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ '?','1','2','3','4','5','6','7','8','9','0','*','#','?','?', 0 @@ -2412,7 +2402,7 @@ elem_mid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 offset, gu if (curr_offset - offset >= len) /* Sanity check */ return (curr_offset - offset); - str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), NULL, FALSE); + str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), &Dgt_meid, FALSE); proto_tree_add_string(tree, hf_ansi_a_meid, tvb, curr_offset, len - (curr_offset - offset), str); proto_item_append_text(data_p->elem_item, " - MEID (%s)", str); @@ -2494,7 +2484,7 @@ elem_mid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 offset, gu if (curr_offset - offset >= len) /* Sanity check */ return (curr_offset - offset); - str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), NULL, FALSE); + str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), &Dgt_msid, FALSE); proto_tree_add_string_format(tree, hf_ansi_a_imsi, tvb, curr_offset, len - (curr_offset - offset), str, "BCD Digits: %s", str); @@ -4067,7 +4057,7 @@ elem_cld_party_bcd_num(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, if (curr_offset - offset >= len) /* Sanity check */ return (curr_offset - offset); - str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), NULL, FALSE); + str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), &Dgt_tbcd, FALSE); proto_tree_add_string(tree, hf_ansi_a_cld_party_bcd_num, tvb, curr_offset, len - (curr_offset - offset), str); proto_item_append_text(data_p->elem_item, " - (%s)", str); @@ -7019,7 +7009,7 @@ elem_dtmf_chars(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 return (curr_offset - offset); packed_len = len - (curr_offset - offset); - str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, packed_len, NULL, FALSE); + str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, packed_len, &Dgt_dtmf, FALSE); proto_tree_add_string(tree, hf_ansi_a_bdtmf_chars_digits, tvb, curr_offset, packed_len, str); proto_item_append_text(data_p->elem_item, " - (%s)", str); |