From d6bd141d0f889bdd1a8a23ea13b69c8ffabcf52f Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 2 May 2020 13:14:07 +0300 Subject: [PATCH] convert to bool --- fortune-mod/fortune/fortune.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fortune-mod/fortune/fortune.c b/fortune-mod/fortune/fortune.c index 078589b..4187b96 100644 --- a/fortune-mod/fortune/fortune.c +++ b/fortune-mod/fortune/fortune.c @@ -1074,7 +1074,7 @@ static int form_file_list(char **files, int file_cnt) */ static void getargs(int argc, char **argv) { - int ignore_case = false; + bool ignore_case = false; #ifndef NO_REGEX char *pat = NULL; @@ -1143,7 +1143,7 @@ static void getargs(int argc, char **argv) pat = optarg; break; case 'i': /* case-insensitive match */ - ignore_case++; + ignore_case = true; break; #endif /* NO_REGEX */ case 'u': /* Don't recode the fortune */ -- 2.40.0