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
This commit is contained in:
Guy Harris 2005-07-16 01:33:22 +00:00
parent ee55c8a608
commit 8e4007ef27
1 changed files with 2 additions and 2 deletions

View File

@ -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;