From b21ea034b699c9eea835fdd30a6f9bb87ec0b79c Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Thu, 4 Nov 2010 21:30:42 +0000 Subject: 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 --- epan/dissectors/packet-wbxml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-wbxml.c') 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, "")); return str; } -- cgit v1.2.3