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