aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wbxml.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-11-04 21:30:42 +0000
committerBill Meier <wmeier@newsguy.com>2010-11-04 21:30:42 +0000
commitb21ea034b699c9eea835fdd30a6f9bb87ec0b79c (patch)
tree2350102ebdbb2ed32dfed6af389361df7e71c7de /epan/dissectors/packet-wbxml.c
parent198ecea8961d5605a9ad3aa308088a620944a8de (diff)
Use value_string_ext fcns to access certain value_string arrays;
Sort certain value_string arrays to be in ascending numeric order; Do minor whitespace cleanup and reformatting of long lines. svn path=/trunk/; revision=34780
Diffstat (limited to 'epan/dissectors/packet-wbxml.c')
-rw-r--r--epan/dissectors/packet-wbxml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wbxml.c b/epan/dissectors/packet-wbxml.c
index 44c367475e..e861d5ec85 100644
--- a/epan/dissectors/packet-wbxml.c
+++ b/epan/dissectors/packet-wbxml.c
@@ -4915,6 +4915,7 @@ static const value_string vals_wv_csp_11_element_value_tokens[] = {
{ 0x00, NULL }
};
+static value_string_ext vals_wv_csp_11_element_value_tokens_ext = VALUE_STRING_EXT_INIT(vals_wv_csp_11_element_value_tokens);
/***** Token code page aggregation *****/
@@ -4923,7 +4924,7 @@ static char *
ext_t_0_wv_cspc_11(tvbuff_t *tvb _U_, guint32 value, guint32 str_tbl _U_)
{
char *str = g_strdup_printf("Common Value: '%s'",
- val_to_str(value, vals_wv_csp_11_element_value_tokens,
+ val_to_str_ext(value, &vals_wv_csp_11_element_value_tokens_ext,
"<Unknown WV-CSP 1.1 Common Value token 0x%X>"));
return str;
}