]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/alloc.c
fb-grow: Renamed fbgrow_read_all() to fbgrow_get_buf().
[libucw.git] / ucw / alloc.c
index 4f531366ec6eedaa6643732b3cc670a39ee40cb0..4528e09757f16d4a00e444e1a33973921fcc5736 100644 (file)
 #include <string.h>
 
 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);