X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1ca8f21e0edfe448b71ac86de1b0cd987547a002..b47b562525f149f175c3d216feea20a6db2e9ff5:/uip/show.c diff --git a/uip/show.c b/uip/show.c index 3943118a..3de3a836 100644 --- a/uip/show.c +++ b/uip/show.c @@ -66,9 +66,10 @@ static int is_nontext(char *); int main (int argc, char **argv) { - int draftsw = 0; + bool draftsw = false; bool headersw = true; - int nshow = 0, checkmime = 1; + bool nshow = false; + bool checkmime = true; bool mime = false; int isdf = 0, mode = SHOW, msgnum; char *cp, *maildir, *file = NULL, *folder = NULL, *proc, *program; @@ -126,7 +127,7 @@ non_mhl_switches: case DRFTSW: if (file) die("only one file at a time!"); - draftsw++; + draftsw = true; if (mode == SHOW) continue; usage: @@ -168,22 +169,22 @@ usage: case SHOWSW: if (!(showproc = *argp++) || *showproc == '-') die("missing argument to %s", argp[-2]); - nshow = 0; + nshow = false; continue; case NSHOWSW: - nshow++; + nshow = true; continue; case SHOWMIMESW: if (!(showmimeproc = *argp++) || *showmimeproc == '-') die("missing argument to %s", argp[-2]); - nshow = 0; + nshow = false; continue; case CHECKMIMESW: - checkmime++; + checkmime = true; continue; case NOCHECKMIMESW: - checkmime = 0; + checkmime = false; continue; } }