From 6b9f1633537e2ff06eb1a0741e4598a294f40fcb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 28 Jan 2010 02:24:24 +0100 Subject: *: style fixes. no code changes (verified with objdump) Signed-off-by: Denys Vlasenko --- shell/lash_unused.c | 13 +++++++++---- shell/msh_unused.c | 7 ++++--- 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'shell') diff --git a/shell/lash_unused.c b/shell/lash_unused.c index 107ce88f6..513918962 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); diff --git a/shell/msh_unused.c b/shell/msh_unused.c index d4fe3db1b..54680226a 100644 --- a/shell/msh_unused.c +++ b/shell/msh_unused.c @@ -3873,9 +3873,10 @@ static char *blank(int f) scanequals = 0; for (;;) { c = subgetc('"', foundequals); - if (c == 0 || - f & (DOBLANK && any(c, ifs->value)) || - (!INSUB() && any(c, "\"'"))) { + if (c == 0 + || f & (DOBLANK && any(c, ifs->value)) + || (!INSUB() && any(c, "\"'")) + ) { scanequals = 0; unget(c); if (any(c, "\"'")) -- cgit v1.2.3-55-g6feb