From: Pavel Charvat Date: Wed, 3 Sep 2008 13:10:38 +0000 (+0200) Subject: Use size_t in xmalloc_zero. X-Git-Tag: v5.0~124 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=23264142feea939868c79d67f54bab0328ccc396;p=libucw.git Use size_t in xmalloc_zero. --- diff --git a/ucw/alloc.c b/ucw/alloc.c index 4562b815..4528e097 100644 --- a/ucw/alloc.c +++ b/ucw/alloc.c @@ -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); diff --git a/ucw/lib.h b/ucw/lib.h index 9612e6c7..28145ac9 100644 --- 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) ***/