From 6a3ae5e26a5cebfd35f2423aec0c47843b5a85be Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 22 Aug 2006 16:06:11 +0200 Subject: [PATCH] removed badmalloc (thx for the pointer to Uriel) --- util.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/util.c b/util.c index 99d7beb..2eb9eb2 100644 --- a/util.c +++ b/util.c @@ -9,14 +9,6 @@ #include #include -/* static */ - -static void -badmalloc(unsigned int size) -{ - eprint("fatal: could not malloc() %u bytes\n", size); -} - /* extern */ void * @@ -25,7 +17,7 @@ emallocz(unsigned int size) void *res = calloc(1, size); if(!res) - badmalloc(size); + eprint("fatal: could not malloc() %u bytes\n", size); return res; } @@ -45,7 +37,7 @@ erealloc(void *ptr, unsigned int size) { void *res = realloc(ptr, size); if(!res) - badmalloc(size); + eprint("fatal: could not malloc() %u bytes\n", size); return res; } -- 1.7.10.4