From 792f302acee3122ed0f9469d8676dbb271f60849 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 9 Jun 2023 17:27:41 +0000 Subject: use fatal/fatalx instead of err/errx in daemon code --- utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils.c') 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; } -- cgit v1.2.3