aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-etch.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-11-21 18:46:40 +0000
committerBill Meier <wmeier@newsguy.com>2013-11-21 18:46:40 +0000
commit7727623d8cb5d5637a8af795f385e5e5b6e7d2ec (patch)
tree03e18c7a67b71ff286d7e9dad52e88642708bbc7 /epan/dissectors/packet-etch.c
parentde60c9c76ba7e896cc999071edf357a0c4b82ae6 (diff)
Do some constification;
Create/use value_string_ext_free(); Display certain numbers also as hex in the "forced to fall back to linear search: ..." value-string warning msg Add editor-modelines to some files; Do some whitespace changes. svn path=/trunk/; revision=53484
Diffstat (limited to 'epan/dissectors/packet-etch.c')
-rw-r--r--epan/dissectors/packet-etch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-etch.c b/epan/dissectors/packet-etch.c
index 2588475ee2..382f85db1a 100644
--- a/epan/dissectors/packet-etch.c
+++ b/epan/dissectors/packet-etch.c
@@ -173,8 +173,8 @@ void proto_reg_handoff_etch(void);
* value_string_ext from the array for use by try_val_to_str_ext & friends.
* (Code based upon code in packet-diameter.c)
*/
-static GArray *gbl_symbols_array = NULL;
-static value_string_ext *gbl_symbols_vs_ext = NULL;
+static GArray *gbl_symbols_array = NULL;
+static const value_string_ext *gbl_symbols_vs_ext = NULL;
static void
gbl_symbols_new(void)
@@ -186,7 +186,7 @@ gbl_symbols_new(void)
static void
gbl_symbols_free(void)
{
- wmem_free(wmem_epan_scope(), gbl_symbols_vs_ext);
+ value_string_ext_free(gbl_symbols_vs_ext);
gbl_symbols_vs_ext = NULL;
if (gbl_symbols_array != NULL) {