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