aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-06-30 11:09:07 +0100
committerMichael Mann <mmann78@netscape.net>2016-07-08 20:01:02 +0000
commit94c0f910855f45161d1bbe4bd51bd4ed131daa28 (patch)
tree016fd77587a302805a80755478c070cba0c6b49c
parent4feb116437cb399355450d1f508f1da55f97fa28 (diff)
Fix value_string_ext_free() constness
Don't declare destructor as taking a const argument. Change-Id: I9badfe400718bef41a0e0a00d4b3d1b0bb2879d1 Reviewed-on: https://code.wireshark.org/review/16342 Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/value_string.c4
-rw-r--r--epan/value_string.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/value_string.c b/epan/value_string.c
index 298fd17..5832541 100644
--- a/epan/value_string.c
+++ b/epan/value_string.c
@@ -278,9 +278,9 @@ value_string_ext_new(const value_string *vs, guint vs_tot_num_entries,
}
void
-value_string_ext_free(const value_string_ext *vse)
+value_string_ext_free(value_string_ext *vse)
{
- wmem_free(wmem_epan_scope(), (void *)vse);
+ wmem_free(wmem_epan_scope(), vse);
}
/* Like try_val_to_str for extended value strings */
diff --git a/epan/value_string.h b/epan/value_string.h
index 44d22ca..ec22915 100644
--- a/epan/value_string.h
+++ b/epan/value_string.h
@@ -197,7 +197,7 @@ value_string_ext_new(const value_string *vs, guint vs_tot_num_entries, const gch
WS_DLL_PUBLIC
void
-value_string_ext_free(const value_string_ext *vse);
+value_string_ext_free(value_string_ext *vse);
WS_DLL_PUBLIC
const gchar *