summaryrefslogtreecommitdiff
path: root/shell/lash_unused.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-01-28 02:24:24 +0100
committerDenys Vlasenko2010-01-28 02:24:24 +0100
commit6b9f1633537e2ff06eb1a0741e4598a294f40fcb (patch)
treea13f4f3558c2988bc95b5a59c9996da64a0bd570 /shell/lash_unused.c
parent17323a6245597f16321e6bf99536ae9bb89c79cf (diff)
downloadbusybox-6b9f1633537e2ff06eb1a0741e4598a294f40fcb.zip
busybox-6b9f1633537e2ff06eb1a0741e4598a294f40fcb.tar.gz
*: style fixes. no code changes (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/lash_unused.c')
-rw-r--r--shell/lash_unused.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/lash_unused.c b/shell/lash_unused.c
index 107ce88..5139189 100644
--- a/shell/lash_unused.c
+++ b/shell/lash_unused.c
@@ -950,8 +950,12 @@ static int parse_command(char **command_ptr, struct job *job, int *inbg)
*buf++ = '\\';
*buf++ = '\\';
}
- } else if (*src == '*' || *src == '?' || *src == '[' ||
- *src == ']') *buf++ = '\\';
+ } else
+ if (*src == '*' || *src == '?'
+ || *src == '[' || *src == ']'
+ ) {
+ *buf++ = '\\';
+ }
*buf++ = *src;
} else if (isspace(*src)) {
if (*prog->argv[argc_l] || (flag & LASH_OPT_SAW_QUOTE)) {
@@ -1365,8 +1369,9 @@ static int busy_loop(FILE *input)
continue;
}
- if (!parse_command(&next_command, &newjob, &inbg) &&
- newjob.num_progs) {
+ if (!parse_command(&next_command, &newjob, &inbg)
+ && newjob.num_progs
+ ) {
int pipefds[2] = { -1, -1 };
debug_printf("job=%p fed to run_command by busy_loop()'\n",
&newjob);