]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/alloc.c
Use size_t in xmalloc() and xrealloc().
[libucw.git] / ucw / alloc.c
index 4f531366ec6eedaa6643732b3cc670a39ee40cb0..4562b81521a4340d6845b57e0ca1ab698df75bf4 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;
 }