From 8e4007ef275ce3761f8ef23749280baf13554a2b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 16 Jul 2005 01:33:22 +0000 Subject: Throw in some casts to squelch warnings, at least with some compilers (the values are const because nobody's supposed to modify them once they've been allocated, but they *can* be freed - by us - when we're done with them). svn path=/trunk/; revision=14936 --- epan/radius_dict.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan') diff --git a/epan/radius_dict.l b/epan/radius_dict.l index 4bac0b3a7f..17c4e8986d 100644 --- a/epan/radius_dict.l +++ b/epan/radius_dict.l @@ -268,9 +268,9 @@ gboolean destroy_attrs(gpointer k _U_, gpointer v, gpointer p _U_) { g_free(a->name); if (a->vs) { for(i=0; a->vs[i].strptr; i++) { - g_free(a->vs[i].strptr); /* fake const warning */ + g_free((void *)a->vs[i].strptr); } - g_free(a->vs); + g_free((void *)a->vs); } g_free(a); return TRUE; -- cgit v1.2.3