]> diplodocus.org Git - nmh/blobdiff - sbr/arglist.c
Added mhfixmsg -[no]decodeheaderfieldbodies switches.
[nmh] / sbr / arglist.c
index 5ede1fa..168e36b 100644 (file)
@@ -5,8 +5,12 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "r1bindex.h"
+#include "brkstring.h"
+#include "error.h"
+#include "arglist.h"
+#include "h/utils.h"
 
 /*
  * Split up a command into an appropriate array to pass to execvp()
@@ -39,13 +43,15 @@ char **
 argsplit(char *command, char **file, int *argp)
 {
     char **argvarray, *p;
-    int space = 0, metachar = 0, i;
+    int i;
 
+    bool space = false;
+    bool metachar = false;
     for (p = command; *p; p++) {
        if (*p == ' ' || *p == '\t') {
-               space = 1;
+               space = true;
        } else if (strchr(METACHARS, *p)) {
-               metachar = 1;
+               metachar = true;
                break;
        }
     }