]> diplodocus.org Git - nmh/blobdiff - uip/mhstore.c
repl.c, replsbr.c: Move shared data into header file.
[nmh] / uip / mhstore.c
index e09be9def25eebcd4312ad3e84ae4437e0a248bc..66ad91e99e99f51bb652dc6d0b59b0cf4b8aa41c 100644 (file)
@@ -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);