]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/alloc.c
Opt: Documented opt and its interaction with conf
[libucw.git] / ucw / alloc.c
index bed8c51f104a0d78dbe3e90023ea346fd4fb2320..c4e40640e764a98ba6bf923af6885b03dc26e9f1 100644 (file)
@@ -7,26 +7,22 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
+#include <ucw/lib.h>
 
 #include <stdlib.h>
 #include <string.h>
 
-#ifndef DEBUG_DMALLOC
-
 void *
-xmalloc(uns size)
+xmalloc(size_t size)
 {
   void *x = malloc(size);
   if (!x)
-    die("Cannot allocate %d bytes of memory", size);
+    die("Cannot allocate %zu bytes of memory", size);
   return x;
 }
 
-#endif
-
 void *
-xmalloc_zero(uns size)
+xmalloc_zero(size_t size)
 {
   void *x = xmalloc(size);
   bzero(x, size);