#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);