X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dbdbd49d59ae5c14e66b1c148a63b8abc9d076ab..4fb142af4ad2ca73d141cc04af24e7c1b62f8a77:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index e09be9de..66ad91e9 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -63,8 +63,10 @@ static void pipeser (int); int main (int argc, char **argv) { + int msgnum, *icachesw; + bool autosw = false; /* verbosw defaults to 1 for backward compatibility. */ - int msgnum, *icachesw, autosw = 0, verbosw = 1; + bool verbosw = true; const char *clobbersw = "always"; char *cp, *file = NULL, *outfile = NULL, *folder = NULL; char *maildir, buf[100], **argp; @@ -106,10 +108,10 @@ main (int argc, char **argv) done (0); case AUTOSW: - autosw++; + autosw = true; continue; case NAUTOSW: - autosw = 0; + autosw = false; continue; case RCACHESW: @@ -185,10 +187,10 @@ do_cache: continue; case VERBSW: - verbosw = 1; + verbosw = true; continue; case NVERBSW: - verbosw = 0; + verbosw = false; continue; case CLOBBERSW: if (!(cp = *argp++) || *cp == '-') @@ -313,7 +315,7 @@ do_cache: if (!*cts) done (1); - userrs = 1; + userrs = true; SIGNAL (SIGQUIT, quitser); SIGNAL (SIGPIPE, pipeser);