diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-09 17:27:41 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-09 17:27:41 +0000 |
commit | 792f302acee3122ed0f9469d8676dbb271f60849 (patch) | |
tree | a3101ae6d85947b48632221e916368e4a10f979a /utils.c | |
parent | 68368f4c29e208c67724b04fd0142e233a247a2a (diff) |
use fatal/fatalx instead of err/errx in daemon code
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |