aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
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 df62e81..cc9c998 100644
--- a/parse.y
+++ b/parse.y
@@ -260,7 +260,7 @@ parse_conf(const char *path)
{
config_path = path;
if ((yyin = fopen(path, "r")) == NULL)
- fatal("cannot open config: %s: %s", path, strerror(errno));
+ err(1, "cannot open config: %s", path);
yyparse();
fclose(yyin);
@@ -268,7 +268,7 @@ parse_conf(const char *path)
exit(1);
if (TAILQ_FIRST(&hosts)->domain == NULL)
- fatal("no vhost defined in %s", path);
+ errx(1, "no vhost defined in %s", path);
}
char *