From 256bf3acc9c21c55c955824f1a00bc7cba6b85a8 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 7 Mar 2024 21:41:07 +0100 Subject: improved 7ed.c to make using the current flags a little smarter --- startmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'startmode.c') diff --git a/startmode.c b/startmode.c index 0ad7155..8b89b93 100644 --- a/startmode.c +++ b/startmode.c @@ -30,7 +30,7 @@ int startmode(char filename[]) { uint64_t Flines; int returnval = count_lines_in_file(filename, &Flines); if (returnval == 1) { - return EXIT_FAILURE; + return 1; } fprintf(stdout,"%s %lu lines\n", filename, Flines); -- cgit v1.2.3