aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-16 01:33:22 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-16 01:33:22 +0000
commit8e4007ef275ce3761f8ef23749280baf13554a2b (patch)
tree39e7454bd24e4a43a5cf40912eca3b83208b2a13 /epan
parentee55c8a608d5ac803b0dd700d1ca80a32056da28 (diff)
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
Diffstat (limited to 'epan')
-rw-r--r--epan/radius_dict.l4
1 files changed, 2 insertions, 2 deletions
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;