diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-11-05 22:44:03 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-11-05 22:44:03 +0000 |
commit | b78ec5269315ff54b7643df9e5deb8a574224bb2 (patch) | |
tree | 268bfcebff2389346229cce5f013daa0ac4bef6d /epan/dissectors/packet-gsm_a_dtap.c | |
parent | 76bc0e537bbb8d55dbfa9b46f1a54bcc02aaadf4 (diff) |
Use value_string_ext fcns to access certain value_string arrays;
Sort certain value_string arrays so the values are in ascending order;
Use val_to_str_ext() instead of for loops to do value_string array lookups (voip_calls.c).
Minor whitespace cleanup.
svn path=/trunk/; revision=34794
Diffstat (limited to 'epan/dissectors/packet-gsm_a_dtap.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_dtap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gsm_a_dtap.c b/epan/dissectors/packet-gsm_a_dtap.c index 2addbda9cb..ac4f9596aa 100644 --- a/epan/dissectors/packet-gsm_a_dtap.c +++ b/epan/dissectors/packet-gsm_a_dtap.c @@ -2307,7 +2307,7 @@ de_call_state(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gc case 0: proto_tree_add_uint_format_value(subtree, hf_gsm_a_dtap_call_state, tvb, offset, 1, call_state, "%s (%u)", - val_to_str(call_state, q931_call_state_vals, "Reserved"), + val_to_str_ext_const(call_state, &q931_call_state_vals_ext, "Reserved"), call_state); break; case 1: @@ -3030,7 +3030,7 @@ de_prog_ind(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gcha case 0: proto_tree_add_uint_format_value(tree, hf_gsm_a_dtap_progress_description, tvb, curr_offset, 1, progress_description, "%s (%u)", - val_to_str(progress_description, q931_progress_description_vals, "Reserved"), + val_to_str_ext_const(progress_description, &q931_progress_description_vals_ext, "Reserved"), progress_description); break; case 1: @@ -6605,7 +6605,7 @@ proto_register_gsm_a_dtap(void) }, { &hf_gsm_a_dtap_afi, { "Authority and Format Identifier", "gsm_a.dtap.afi", - FT_UINT8, BASE_HEX, VALS(x213_afi_value), 0x0, + FT_UINT8, BASE_HEX|BASE_EXT_STRING, &x213_afi_value_ext, 0x0, NULL, HFILL } }, { &hf_gsm_a_dtap_rej_cause, |