diff src/audacious/util.c @ 4278:0a9e1d9eae7b

Fix some warnings.
author William Pitcock <nenolod@atheme.org>
date Mon, 11 Feb 2008 03:57:30 -0600
parents a41fb6bc632a
children f493c456c77f
line wrap: on
line diff
--- a/src/audacious/util.c	Mon Feb 11 05:35:58 2008 +0100
+++ b/src/audacious/util.c	Mon Feb 11 03:57:30 2008 -0600
@@ -1064,9 +1064,12 @@
  *  - double it
  *
  *  -- asphyx
+ *
+ * XXX: what's so smart about this?? seems wasteful and silly. --nenolod
  */
-void*
-smart_realloc(void *ptr, size_t *size) {
+gpointer
+smart_realloc(gpointer ptr, gsize *size)
+{
     *size = (size_t)pow(2, ceil(log(*size) / log(2)) + 1);
     if (ptr != NULL) free(ptr);
     ptr = malloc(*size);