From 625662a5c1cbb71cf37653df1f31cd60c48b18ae Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 22 May 2024 12:16:41 -0400 Subject: Remove use of sysexits.h --- bin/dehtml.l | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/dehtml.l') diff --git a/bin/dehtml.l b/bin/dehtml.l index 799f0926..b6aa4eb8 100644 --- a/bin/dehtml.l +++ b/bin/dehtml.l @@ -47,7 +47,6 @@ enum Token { #include #include #include -#include #include #include @@ -107,7 +106,7 @@ int main(int argc, char *argv[]) { for (int opt; 0 < (opt = getopt(argc, argv, "s"));) { switch (opt) { break; case 's': collapse = true; - break; default: return EX_USAGE; + break; default: return 1; } } argc -= optind; @@ -116,7 +115,7 @@ int main(int argc, char *argv[]) { if (!argc) argc++; for (int i = 0; i < argc; ++i) { yyin = (argv[i] ? fopen(argv[i], "r") : stdin); - if (!yyin) err(EX_NOINPUT, "%s", argv[i]); + if (!yyin) err(1, "%s", argv[i]); bool space = true; bool discard = false; -- cgit 1.4.1