X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/00d760f7506c2d5c32ab5abf9f11b3066999f08a..6fdc3cdb023a8bf4e86e292ba3a748c6e7de788f:/sbr/arglist.c diff --git a/sbr/arglist.c b/sbr/arglist.c index 5ede1fa1..bf88eb2d 100644 --- a/sbr/arglist.c +++ b/sbr/arglist.c @@ -5,8 +5,11 @@ * complete copyright information. */ -#include -#include +#include "h/mh.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 +42,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; } }