aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-06 11:52:43 +0000
committerOmar Polo <op@omarpolo.com>2023-06-06 11:52:43 +0000
commit2dd5994ae172ed8162aff397b907e4fc476fbaae (patch)
treec98adffc59ccbe15e97ed8dacd2e976ac7099de7 /parse.y
parentbc525c73db98605f5bb8d53fb640b9955997fb48 (diff)
use fatal() in code used in the daemon
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 534c7b6..db4329e 100644
--- a/parse.y
+++ b/parse.y
@@ -675,7 +675,7 @@ lungetc(int c)
if (file->ungetpos >= file->ungetsize) {
void *p = reallocarray(file->ungetbuf, file->ungetsize, 2);
if (p == NULL)
- err(1, "lungetc");
+ fatal("lungetc");
file->ungetbuf = p;
file->ungetsize *= 2;
}
@@ -809,7 +809,7 @@ top:
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
- err(1, "yylex: strdup");
+ fatal("yylex: strdup");
return STRING;
}