]> mj.ucw.cz Git - libucw.git/commitdiff
Use size_t in xmalloc_zero.
authorPavel Charvat <pchar@ucw.cz>
Wed, 3 Sep 2008 13:10:38 +0000 (15:10 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 29 Mar 2011 10:52:06 +0000 (12:52 +0200)
ucw/alloc.c
ucw/lib.h

index 4562b81521a4340d6845b57e0ca1ab698df75bf4..4528e09757f16d4a00e444e1a33973921fcc5736 100644 (file)
@@ -22,7 +22,7 @@ xmalloc(size_t size)
 }
 
 void *
-xmalloc_zero(uns size)
+xmalloc_zero(size_t size)
 {
   void *x = xmalloc(size);
   bzero(x, size);
index 9612e6c711148a6e184df95a89920339e4dc1765..28145ac96dedd1d37f46e56603e88ee182b11a2a 100644 (file)
--- a/ucw/lib.h
+++ b/ucw/lib.h
@@ -163,7 +163,7 @@ void *xmalloc(size_t) LIKE_MALLOC;          /** Allocate memory and die() if there is no
 void *xrealloc(void *, size_t);                        /** Reallocate memory and die() if there is none. **/
 void xfree(void *);                            /** Free memory allocated by xmalloc() or xrealloc(). **/
 
-void *xmalloc_zero(uns) LIKE_MALLOC;           /** Allocate memory and fill it by zeroes. **/
+void *xmalloc_zero(size_t) LIKE_MALLOC;                /** Allocate memory and fill it by zeroes. **/
 char *xstrdup(const char *) LIKE_MALLOC;       /** Make a xmalloc()'ed copy of a string. Returns NULL for NULL string. **/
 
 /*** === Trivial timers (timer.c) ***/