aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index 9aac9df..b8f09c7 100644
--- a/utils.c
+++ b/utils.c
@@ -77,13 +77,13 @@ absolutify_path(const char *path)
if (*path == '/') {
if ((r = strdup(path)) == NULL)
- err(1, "strdup");
+ fatal("strdup");
return r;
}
wd = getcwd(NULL, 0);
if (asprintf(&r, "%s/%s", wd, path) == -1)
- err(1, "asprintf");
+ fatal("asprintf");
free(wd);
return r;
}
@@ -94,7 +94,7 @@ xstrdup(const char *s)
char *d;
if ((d = strdup(s)) == NULL)
- err(1, "strdup");
+ fatal("strdup");
return d;
}
@@ -104,7 +104,7 @@ xcalloc(size_t nmemb, size_t size)
void *d;
if ((d = calloc(nmemb, size)) == NULL)
- err(1, "calloc");
+ fatal("calloc");
return d;
}