]> diplodocus.org Git - nmh/blobdiff - uip/mhn.c
seq_del.c: Move interface to own file.
[nmh] / uip / mhn.c
index ab9c8f5293827927c4cb0507b1dc588a4fe629a8..454c43485f698ae23ebc5839244023c84dde0c3c 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -5,18 +5,19 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/error.h"
 #include <fcntl.h>
-#include <h/signals.h>
-#include <h/md5.h>
-#include <h/mts.h>
-#include <h/tws.h>
-#include <h/fmt_scan.h>
-#include <h/mime.h>
-#include <h/mhparse.h>
-#include <h/mhcachesbr.h>
+#include "h/signals.h"
+#include "h/md5.h"
+#include "h/mts.h"
+#include "h/tws.h"
+#include "h/fmt_scan.h"
+#include "h/mime.h"
+#include "h/mhparse.h"
+#include "h/mhcachesbr.h"
 #include "h/done.h"
-#include <h/utils.h>
+#include "h/utils.h"
 #include "mhmisc.h"
 #include "sbr/m_maildir.h"
 #include "mhfree.h"
@@ -89,7 +90,7 @@ static int rfc934sw = 0;
 /*
  * what action to take?
  */
-static int cachesw = 0;
+static bool cachesw;
 static bool listsw;
 static bool showsw;
 static bool storesw;
@@ -107,7 +108,7 @@ main (int argc, char **argv)
 {
     bool sizesw = true;
     bool headsw = true;
-    int autosw = 0;
+    bool autosw = false;
     int msgnum, *icachesw;
     char *cp, *file = NULL, *folder = NULL;
     char *maildir, buf[100], **argp;
@@ -148,17 +149,17 @@ main (int argc, char **argv)
                done (0);
 
            case AUTOSW:
-               autosw++;
+               autosw = true;
                continue;
            case NAUTOSW:
-               autosw = 0;
+               autosw = false;
                continue;
 
            case CACHESW:
-               cachesw++;
+               cachesw = true;
                continue;
            case NCACHESW:
-               cachesw = 0;
+               cachesw = false;
                continue;
 
            case RCACHESW:
@@ -470,7 +471,7 @@ do_cache:
     if (!listsw && !showsw && !storesw && !cachesw)
        showsw = true;
 
-    userrs = 1;
+    userrs = true;
     SIGNAL (SIGQUIT, quitser);
     SIGNAL (SIGPIPE, pipeser);