From: Baptiste Daroussin Date: Mon, 13 Feb 2023 21:26:43 +0000 (+0100) Subject: mlmmj-bounce: convert to stdbool X-Git-Tag: RELEASE_1_4_0b1~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4ff154d7b7d289e1aecf23d52f179ce344bad5;p=thirdparty%2Fmlmmj.git mlmmj-bounce: convert to stdbool --- diff --git a/src/mlmmj-bounce.c b/src/mlmmj-bounce.c index 442d5137..18282f81 100644 --- a/src/mlmmj-bounce.c +++ b/src/mlmmj-bounce.c @@ -124,7 +124,7 @@ int main(int argc, char **argv) const char *thisaddr; char *bindir, *mlmmjsend, *a; const char *mailname = NULL; - int probe = 0; + bool probe = false; bounce_t bret; struct ml ml; @@ -155,7 +155,7 @@ int main(int argc, char **argv) number = optarg; break; case 'p': - probe = 1; + probe = true; break; case 'h': print_help(argv[0]); @@ -167,7 +167,7 @@ int main(int argc, char **argv) } if(ml.dir == NULL || (thisaddr == NULL && dsnbounce == 0) - || (number == NULL && probe == 0)) { + || (number == NULL && !probe)) { errx(EXIT_FAILURE, "You have to specify -L, -a or -d and -n or -p\n" "%s -h for help", argv[0]); } @@ -190,7 +190,7 @@ int main(int argc, char **argv) thisaddr = address; } - if(number != NULL && probe != 0) { + if(number != NULL && probe) { errx(EXIT_FAILURE, "You can only specify one of -n or -p\n" "%s -h for help", argv[0]); }