From: Shlomi Fish Date: Sat, 2 May 2020 10:14:07 +0000 (+0300) Subject: convert to bool X-Git-Tag: fortune-mod-2.28.0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6bd141d0f889bdd1a8a23ea13b69c8ffabcf52f;p=fortune-mod convert to bool --- 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 */