Argument to free can't be const!
Mon Nov 26 20:11:31 2001 Owen Taylor <otaylor@redhat.com> * lib/xmalloc.c include/glibtop/xmalloc.h: (glibtop_free_r): Argument to free can't be const! * include/glibtop/glibtop-client/backend.h lib/glibtop-backend.c lib/glibtop-client.c: Include glib-object.h, not gobject/gobject.h.
This commit is contained in:
@@ -88,7 +88,7 @@ glibtop_strdup_r (glibtop_server *server, const char *string)
|
||||
}
|
||||
|
||||
void
|
||||
glibtop_free_r (glibtop_server *server, const void *ptr)
|
||||
glibtop_free_r (glibtop_server *server, void *ptr)
|
||||
{
|
||||
#ifdef LIBGTOP_USE_GLIB_MALLOC
|
||||
g_free (ptr);
|
||||
|
Reference in New Issue
Block a user