summary refs log tree commit diff
path: root/bin/beef.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-05-22 12:16:41 -0400
committerJune McEnroe <june@causal.agency>2024-05-22 12:16:41 -0400
commit625662a5c1cbb71cf37653df1f31cd60c48b18ae (patch)
tree7a04a48f7007b30f086b353c0c03002c861383b9 /bin/beef.c
parentAdd photo descriptions from 05-03 and 05-06 (diff)
downloadsrc-625662a5c1cbb71cf37653df1f31cd60c48b18ae.tar.gz
src-625662a5c1cbb71cf37653df1f31cd60c48b18ae.zip
Remove use of sysexits.h
Diffstat (limited to '')
-rw-r--r--bin/beef.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/beef.c b/bin/beef.c
index 556f3088..31781753 100644
--- a/bin/beef.c
+++ b/bin/beef.c
@@ -19,7 +19,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sysexits.h>
 #include <time.h>
 
 enum {
@@ -44,7 +43,7 @@ static long stack[StackLen];
 static size_t top = StackLen;
 
 static void push(long val) {
-	if (!top) errx(EX_SOFTWARE, "stack overflow");
+	if (!top) errx(1, "stack overflow");
 	stack[--top] = val;
 }
 static long pop(void) {
@@ -121,7 +120,7 @@ int main(int argc, char *argv[]) {
 	FILE *file = stdin;
 	if (argc > 1) {
 		file = fopen(argv[1], "r");
-		if (!file) err(EX_NOINPUT, "%s", argv[1]);
+		if (!file) err(1, "%s", argv[1]);
 	}
 
 	int y = 0;