summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 23:13:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 23:13:21 +0200
commitf4f3479f1307dfa0ca2e19387c9c2654a32ee7a4 (patch)
tree931ad5e15d772094bfcbed711c75572a2f134b0a /common/hush.c
parent67c7e6eb6f3b406568f1eab8acf31015226de776 (diff)
downloadbarebox-f4f3479f1307dfa0ca2e19387c9c2654a32ee7a4.tar.gz
barebox-f4f3479f1307dfa0ca2e19387c9c2654a32ee7a4.tar.xz
fix indention in hush.c
Diffstat (limited to 'common/hush.c')
-rw-r--r--common/hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/hush.c b/common/hush.c
index ccb617c54e..b59bd446a6 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -1080,7 +1080,8 @@ static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *i
parse_string(dest, ctx, ctx->global_argv[i]); /* recursion */
}
advance = 1;
- } else switch (ch) {
+ } else {
+ switch (ch) {
case '?':
ctx->child->sp++;
b_addchr(dest, SPECIAL_VAR_SYMBOL);
@@ -1109,6 +1110,7 @@ static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *i
break;
default:
b_addqchr(dest,'$',dest->quote);
+ }
}
/* Eat the character if the flag was set. If the compiler
* is smart enough, we could substitute "b_getch(input);"