diff options
author | Oskar <[email protected]> | 2024-04-14 13:12:36 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-14 13:12:36 +0200 |
commit | 5adffffc05eef954a606e28e8f769ce0a31c83c7 (patch) | |
tree | cd8a689b5fd57fde206f2e98e0dbfda3f83742f1 /startmode.c | |
parent | 94cca5bee677e31a084101f1afc506c0a0b9c65e (diff) |
Makefile changes, added gnu11 std and added -Wpedantic for better
warnings
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 8 |
1 files changed, 4 insertions, 4 deletions
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': |