From 83957ee88701c6dc08248123c89d0ac21e591473 Mon Sep 17 00:00:00 2001 From: albert <> Date: Mon, 30 Sep 2002 23:32:54 +0000 Subject: [PATCH] make warning go away --- proc/alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proc/alloc.c b/proc/alloc.c index 0a616cec..4f495e5d 100644 --- a/proc/alloc.c +++ b/proc/alloc.c @@ -15,9 +15,8 @@ void *xcalloc(void *pointer, int size) { if (!(ret = calloc(1, size))) { fprintf(stderr, "xcalloc: allocation error, size = %d\n", size); exit(1); - } else { - return ret; } + return ret; } void *xmalloc(unsigned int size) {