diff options
author | Anselm R. Garbe | 2006-08-22 16:06:11 +0200 |
---|---|---|
committer | Anselm R. Garbe | 2006-08-22 16:06:11 +0200 |
commit | f065f55e92d14fce139795c4fd504660aaae2b2c (patch) | |
tree | cd9cd8bb6a870fdbe9412e7cb1a0a62210133142 /util.c | |
parent | 06ff144052c929ff885ab6f041972ae974576da7 (diff) | |
download | aur-f065f55e92d14fce139795c4fd504660aaae2b2c.tar.gz |
removed badmalloc (thx for the pointer to Uriel)
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -9,14 +9,6 @@ #include <sys/wait.h> #include <unistd.h> -/* 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; } |