]> diplodocus.org Git - nmh/blobdiff - uip/mhlist.c
Use va_copy() to get a copy of va_list, instead of using original.
[nmh] / uip / mhlist.c
index 5b14b88a2342443dd5bd8e1ab3c0135d10903a11..dd9b6d005f62d48d8d65ffb25f8194c63091e25c 100644 (file)
@@ -69,7 +69,11 @@ static void pipeser (int);
 int
 main (int argc, char **argv)
 {
-    int sizesw = 1, headsw = 1, chgflag = 1, verbosw = 0, dispo = 0;
+    bool sizesw = true;
+    bool headsw = true;
+    bool chgflag = true;
+    bool verbosw = false;
+    bool dispo = false;
     int msgnum, *icachesw;
     char *cp, *file = NULL, *folder = NULL;
     char *maildir, buf[100], **argp;
@@ -133,17 +137,17 @@ do_cache:
                continue;
 
            case HEADSW:
-               headsw = 1;
+               headsw = true;
                continue;
            case NHEADSW:
-               headsw = 0;
+               headsw = false;
                continue;
 
            case SIZESW:
-               sizesw = 1;
+               sizesw = true;
                continue;
            case NSIZESW:
-               sizesw = 0;
+               sizesw = false;
                continue;
 
            case PARTSW:
@@ -187,23 +191,23 @@ do_cache:
                continue;
 
            case CHGSW:
-               chgflag++;
+               chgflag = true;
                continue;
            case NCHGSW:
-               chgflag = 0;
+               chgflag = false;
                continue;
 
            case VERBSW: 
-               verbosw = 1;
+               verbosw = true;
                continue;
            case NVERBSW: 
-               verbosw = 0;
+               verbosw = false;
                continue;
            case DISPOSW:
-               dispo = 1;
+               dispo = true;
                continue;
            case NDISPOSW:
-               dispo = 0;
+               dispo = false;
                continue;
            case DEBUGSW:
                debugsw = 1;
@@ -290,7 +294,7 @@ do_cache:
     if (!*cts)
        done (1);
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);