diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-06 11:52:43 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-06 11:52:43 +0000 |
commit | 2dd5994ae172ed8162aff397b907e4fc476fbaae (patch) | |
tree | c98adffc59ccbe15e97ed8dacd2e976ac7099de7 /parse.y | |
parent | bc525c73db98605f5bb8d53fb640b9955997fb48 (diff) |
use fatal() in code used in the daemon
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |