From 7b930363bf7bfc0ea429dbe80a5697b830b1fab7 Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 29 Jul 2024 11:12:02 -0600 Subject: [PATCH] npc(1): fix syntax errors --- src/npc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/npc.c b/src/npc.c index b35aba4..7ef760a 100644 --- a/src/npc.c +++ b/src/npc.c @@ -25,7 +25,7 @@ char *program_name = "npc"; static int -ioerr(char *argv0, int err) { +ioerr(char *argv0) { perror(argv0); return EX_IOERR; @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) { break; case '\n': if (showend && fputc('$', stdout) == EOF) { - return ioerr(argv[0]); } + return ioerr(argv[0]); } default: if (c >= ' ' || c == '\n' || (!showtab && c == '\t')) {