X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Falloc.c;h=c4e40640e764a98ba6bf923af6885b03dc26e9f1;hb=0db6e10eac28f38bfc3b325b13ad95107c58ce1e;hp=bed8c51f104a0d78dbe3e90023ea346fd4fb2320;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/alloc.c b/ucw/alloc.c index bed8c51f..c4e40640 100644 --- a/ucw/alloc.c +++ b/ucw/alloc.c @@ -7,26 +7,22 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" +#include #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);