]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/realloc.c
Updated TODO
[libucw.git] / ucw / realloc.c
index ed3f1a43cec61c75288b0bfe34ddf98e1dcbec5f..3f2eff2bbf6c94189584f38f4a89ac7b3235d1b0 100644 (file)
@@ -7,20 +7,16 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
+#include <ucw/lib.h>
 
 #include <stdlib.h>
 
-#ifndef DEBUG_DMALLOC
-
 void *
-xrealloc(void *old, uns size)
+xrealloc(void *old, size_t size)
 {
   /* We assume that realloc(NULL, x) works like malloc(x), which is true with the glibc. */
   void *x = realloc(old, size);
   if (!x)
-    die("Cannot reallocate %d bytes of memory", size);
+    die("Cannot reallocate %zu bytes of memory", size);
   return x;
 }
-
-#endif