aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-09 17:27:41 +0000
committerOmar Polo <op@omarpolo.com>2023-06-09 17:27:41 +0000
commit792f302acee3122ed0f9469d8676dbb271f60849 (patch)
treea3101ae6d85947b48632221e916368e4a10f979a /parse.y
parent68368f4c29e208c67724b04fd0142e233a247a2a (diff)
use fatal/fatalx instead of err/errx in daemon code
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 11d4250..ecbb728 100644
--- a/parse.y
+++ b/parse.y
@@ -442,7 +442,7 @@ fastcgi : string {
| TCP string PORT NUM {
char *c;
if (asprintf(&c, "%d", $4) == -1)
- err(1, "asprintf");
+ fatal("asprintf");
loc->fcgi = fastcgi_conf($2, c);
free($2);
}
@@ -476,7 +476,7 @@ medianames_l : medianames_l medianamesl
medianamesl : numberstring {
if (add_mime(&conf->mime, current_media, $1) == -1)
- err(1, "add_mime");
+ fatal("add_mime");
free($1);
}
;