From 5adffffc05eef954a606e28e8f769ce0a31c83c7 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sun, 14 Apr 2024 13:12:36 +0200 Subject: Makefile changes, added gnu11 std and added -Wpedantic for better warnings --- startmode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'startmode.c') diff --git a/startmode.c b/startmode.c index e7175a2..372cc94 100644 --- a/startmode.c +++ b/startmode.c @@ -46,7 +46,7 @@ int call_singles(char single, uint64_t focus, char *filename) { switch(single) { case 'p': - case 'P': + case 'P': { char *line; size_t start; @@ -57,7 +57,7 @@ int call_singles(char single, uint64_t focus, char *filename) { fprintf(stdout, "%s", line); free(line); - break; + break; } case 'e': case 'E': @@ -65,14 +65,14 @@ int call_singles(char single, uint64_t focus, char *filename) { break; case 'c': - case 'C': + case 'C': { int dnl = display_name_linecount(filename); if (dnl == 1) { return EXIT_FAILURE; } - break; + break; } case 'q': case 'Q': -- cgit v1.2.3