aboutsummaryrefslogtreecommitdiffstats
path: root/envmalloczn.c
diff options
context:
space:
mode:
Diffstat (limited to 'envmalloczn.c')
-rw-r--r--envmalloczn.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/envmalloczn.c b/envmalloczn.c
index 832ce67..84c0ea7 100644
--- a/envmalloczn.c
+++ b/envmalloczn.c
@@ -3,17 +3,12 @@
#ifndef TEST
-extern char *argv0;
-
-
void *
libsimple_envmalloczn(int status, int clear, size_t n, va_list ap) /* TODO test */
{
void *ret = libsimple_vmalloczn(clear, n, ap);
- if (!ret) {
- fprintf(stderr, "%s: %s: %s\n", argv0, clear ? "calloc" : "malloc", strerror(errno));
- exit(status);
- }
+ if (!ret)
+ enprintf(status, "%s:", clear ? "calloc" : "malloc");
return ret;
}