Fix coding style

It was about damn time. Consistency is very important in such a
big codebase.
This commit is contained in:
FRIGN
2014-11-13 18:29:30 +01:00
committed by sin
parent e35d9e62a5
commit eee98ed3a4
70 changed files with 622 additions and 557 deletions

View File

@@ -5,6 +5,7 @@
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
#include "text.h"
#include "util.h"
@@ -48,7 +49,7 @@ main(int argc, char *argv[])
ARGBEGIN {
case 'n':
nflag = 1;
if((maxargs = strtol(EARGF(usage()), NULL, 10)) <= 0)
if ((maxargs = strtol(EARGF(usage()), NULL, 10)) <= 0)
eprintf("%s: value for -n option should be >= 1\n", argv0);
break;
case 'r':
@@ -92,13 +93,13 @@ main(int argc, char *argv[])
i++;
a++;
leftover = 0;
if(nflag == 1 && a >= maxargs)
if (nflag == 1 && a >= maxargs)
break;
}
cmd[i] = NULL;
if(a >= maxargs && nflag == 1)
if (a >= maxargs && nflag == 1)
spawn();
else if(!a || (i == 1 && rflag == 1))
else if (!a || (i == 1 && rflag == 1))
;
else
spawn();