aboutsummaryrefslogtreecommitdiffstats
path: root/enrealloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'enrealloc.c')
-rw-r--r--enrealloc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/enrealloc.c b/enrealloc.c
index 04feede..92a50db 100644
--- a/enrealloc.c
+++ b/enrealloc.c
@@ -3,17 +3,12 @@
#ifndef TEST
-extern char *argv0;
-
-
void *
libsimple_enrealloc(int status, void *ptr, size_t n) /* TODO test */
{
char *ret = realloc(ptr, n);
- if (!ret) {
- fprintf(stderr, "%s: realloc: %s\n", argv0, strerror(errno));
- exit(status);
- }
+ if (!ret)
+ enprintf(status, "realloc:");
return ret;
}