diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-06 22:54:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-11 13:31:57 +0100 |
commit | 0332f49a4ad471eca9363d1083478d54d6fa76b6 (patch) | |
tree | 12cd55b6e83d4ecca249e1200e074ad74c61cdbd /common/hush.c | |
parent | e07d90b760047b8461cd840f19e6291456edfa53 (diff) | |
download | barebox-0332f49a4ad471eca9363d1083478d54d6fa76b6.tar.gz barebox-0332f49a4ad471eca9363d1083478d54d6fa76b6.tar.xz |
hush: fix indentation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/hush.c')
-rw-r--r-- | common/hush.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/common/hush.c b/common/hush.c index 832bc7bdb2..d3f7bf330d 100644 --- a/common/hush.c +++ b/common/hush.c @@ -863,29 +863,29 @@ static int run_list_real(struct p_context *ctx, struct pipe *pi) if ((rpipe->r_mode == RES_IN || rpipe->r_mode == RES_FOR) && (rpipe->next == NULL)) { - syntax(); - return 1; + syntax(); + return 1; } if ((rpipe->r_mode == RES_IN && - (rpipe->next->r_mode == RES_IN && - rpipe->next->progs->argv != NULL))|| - (rpipe->r_mode == RES_FOR && - rpipe->next->r_mode != RES_IN)) { - syntax(); - return 1; + (rpipe->next->r_mode == RES_IN && + rpipe->next->progs->argv != NULL))|| + (rpipe->r_mode == RES_FOR && + rpipe->next->r_mode != RES_IN)) { + syntax(); + return 1; } } for (; pi; pi = (flag_restore != 0) ? rpipe : pi->next) { if (pi->r_mode == RES_WHILE || pi->r_mode == RES_UNTIL || - pi->r_mode == RES_FOR) { - /* check Ctrl-C */ - if (ctrlc()) - return 1; - flag_restore = 0; - if (!rpipe) { - flag_rep = 0; - rpipe = pi; - } + pi->r_mode == RES_FOR) { + /* check Ctrl-C */ + if (ctrlc()) + return 1; + flag_restore = 0; + if (!rpipe) { + flag_rep = 0; + rpipe = pi; + } } rmode = pi->r_mode; debug("rmode=%d if_code=%d next_if_code=%d skip_more=%d\n", |