aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
commit60cb48ca50fcff24aa6c3927f51e4a508fa118f4 (patch)
tree493e30821f3d484b7395ce9d9e4be39ec9a43126 /shell
parentb8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (diff)
downloadbusybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.gz
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.bz2
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.zip
whitespace cleanup. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c8
-rw-r--r--shell/hush.c4
-rw-r--r--shell/math.c2
3 files changed, 8 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c
index dda18e8b5..eb1347447 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3564,7 +3564,8 @@ set_curjob(struct job *jp, unsigned mode)
3564 break; 3564 break;
3565 case CUR_RUNNING: 3565 case CUR_RUNNING:
3566 /* newly created job or backgrounded job, 3566 /* newly created job or backgrounded job,
3567 put after all stopped jobs. */ 3567 * put after all stopped jobs.
3568 */
3568 while (1) { 3569 while (1) {
3569 jp1 = *jpp; 3570 jp1 = *jpp;
3570#if JOBS 3571#if JOBS
@@ -11640,8 +11641,9 @@ parsebackq: {
11640 INT_ON; 11641 INT_ON;
11641 if (oldstyle) { 11642 if (oldstyle) {
11642 /* We must read until the closing backquote, giving special 11643 /* We must read until the closing backquote, giving special
11643 treatment to some slashes, and then push the string and 11644 * treatment to some slashes, and then push the string and
11644 reread it as input, interpreting it normally. */ 11645 * reread it as input, interpreting it normally.
11646 */
11645 char *pout; 11647 char *pout;
11646 size_t psavelen; 11648 size_t psavelen;
11647 char *pstr; 11649 char *pstr;
diff --git a/shell/hush.c b/shell/hush.c
index b9e763cc8..87807052c 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -4219,7 +4219,7 @@ static struct pipe *parse_stream(char **pstring,
4219 /* (this makes bare "&" cmd a no-op. 4219 /* (this makes bare "&" cmd a no-op.
4220 * bash says: "syntax error near unexpected token '&'") */ 4220 * bash says: "syntax error near unexpected token '&'") */
4221 if (pi->num_cmds == 0 4221 if (pi->num_cmds == 0
4222 IF_HAS_KEYWORDS( && pi->res_word == RES_NONE) 4222 IF_HAS_KEYWORDS(&& pi->res_word == RES_NONE)
4223 ) { 4223 ) {
4224 free_pipe_list(pi); 4224 free_pipe_list(pi);
4225 pi = NULL; 4225 pi = NULL;
@@ -4372,7 +4372,7 @@ static struct pipe *parse_stream(char **pstring,
4372 debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]); 4372 debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]);
4373 /* Do we sit outside of any if's, loops or case's? */ 4373 /* Do we sit outside of any if's, loops or case's? */
4374 if (!HAS_KEYWORDS 4374 if (!HAS_KEYWORDS
4375 IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0)) 4375 IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0))
4376 ) { 4376 ) {
4377 o_free(&dest); 4377 o_free(&dest);
4378#if !BB_MMU 4378#if !BB_MMU
diff --git a/shell/math.c b/shell/math.c
index 760645d0f..15c003965 100644
--- a/shell/math.c
+++ b/shell/math.c
@@ -410,7 +410,7 @@ arith_apply(arith_state_t *math_state, operator op, var_or_num_t *numstack, var_
410 return "exponent less than 0"; 410 return "exponent less than 0";
411 c = 1; 411 c = 1;
412 while (--right_side_val >= 0) 412 while (--right_side_val >= 0)
413 c *= rez; 413 c *= rez;
414 rez = c; 414 rez = c;
415 } 415 }
416 else if (right_side_val == 0) 416 else if (right_side_val == 0)