X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Falloc.c;h=4528e09757f16d4a00e444e1a33973921fcc5736;hb=521609b4721376161eabe89c9431aa221e87e263;hp=bed8c51f104a0d78dbe3e90023ea346fd4fb2320;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/alloc.c b/ucw/alloc.c index bed8c51f..4528e097 100644 --- a/ucw/alloc.c +++ b/ucw/alloc.c @@ -12,21 +12,17 @@ #include #include -#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);