# HG changeset patch # User Anselm R. Garbe # Date 1156255571 -7200 # Node ID 58c09c533d3fc8c98bbaf49b1e1080cf43ebe9d4 # Parent 6b535e9086365e5d97511557f006b805968b7616 removed badmalloc (thx for the pointer to Uriel) diff -r 6b535e908636 -r 58c09c533d3f util.c --- a/util.c Tue Aug 22 10:06:11 2006 +0200 +++ b/util.c Tue Aug 22 16:06:11 2006 +0200 @@ -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 @@ void *res = calloc(1, size); if(!res) - badmalloc(size); + eprint("fatal: could not malloc() %u bytes\n", size); return res; } @@ -45,7 +37,7 @@ { void *res = realloc(ptr, size); if(!res) - badmalloc(size); + eprint("fatal: could not malloc() %u bytes\n", size); return res; }