X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Falloc.c;h=4528e09757f16d4a00e444e1a33973921fcc5736;hb=c18ab57cb2da67f47b74a00cdc3bff6c80c803cb;hp=4f531366ec6eedaa6643732b3cc670a39ee40cb0;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;p=libucw.git diff --git a/ucw/alloc.c b/ucw/alloc.c index 4f531366..4528e097 100644 --- a/ucw/alloc.c +++ b/ucw/alloc.c @@ -13,16 +13,16 @@ #include 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; } void * -xmalloc_zero(uns size) +xmalloc_zero(size_t size) { void *x = xmalloc(size); bzero(x, size);