summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 23:12:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 23:12:34 +0200
commit67c7e6eb6f3b406568f1eab8acf31015226de776 (patch)
treeafea41141a96a6522f94a0742e200c2944d0ba15 /common
parentaaa71a12636ca0eb45a024683fed654ad1518bf6 (diff)
downloadbarebox-67c7e6eb6f3b406568f1eab8acf31015226de776.tar.gz
barebox-67c7e6eb6f3b406568f1eab8acf31015226de776.tar.xz
fix indention in hush.c
Diffstat (limited to 'common')
-rw-r--r--common/hush.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/common/hush.c b/common/hush.c
index 9ad9542f7a..ccb617c54e 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -935,31 +935,31 @@ static int done_word(o_string *dest, struct p_context *ctx)
debug_printf(" true null, ignored\n");
return 0;
}
- if (child->group) {
- syntax();
- return 1; /* syntax error, groups and arglists don't mix */
- }
- if (!child->argv && (ctx->type & FLAG_PARSE_SEMICOLON)) {
- debug_printf("checking %s for reserved-ness\n",dest->data);
- if (reserved_word(dest,ctx)) return ctx->w==RES_SNTX;
- }
- for (cnt = 1, s = dest->data; s && *s; s++) {
- if (*s == '\\') s++;
- cnt++;
- }
- str = xmalloc(cnt);
- if ( child->argv == NULL) {
- child->argc=0;
- }
- argc = ++child->argc;
- child->argv = xrealloc(child->argv, (argc+1)*sizeof(*child->argv));
- child->argv[argc-1]=str;
- child->argv[argc]=NULL;
- for (s = dest->data; s && *s; s++,str++) {
- if (*s == '\\') s++;
- *str = *s;
- }
- *str = '\0';
+ if (child->group) {
+ syntax();
+ return 1; /* syntax error, groups and arglists don't mix */
+ }
+ if (!child->argv && (ctx->type & FLAG_PARSE_SEMICOLON)) {
+ debug_printf("checking %s for reserved-ness\n",dest->data);
+ if (reserved_word(dest,ctx)) return ctx->w==RES_SNTX;
+ }
+ for (cnt = 1, s = dest->data; s && *s; s++) {
+ if (*s == '\\') s++;
+ cnt++;
+ }
+ str = xmalloc(cnt);
+ if ( child->argv == NULL) {
+ child->argc=0;
+ }
+ argc = ++child->argc;
+ child->argv = xrealloc(child->argv, (argc+1)*sizeof(*child->argv));
+ child->argv[argc-1]=str;
+ child->argv[argc]=NULL;
+ for (s = dest->data; s && *s; s++,str++) {
+ if (*s == '\\') s++;
+ *str = *s;
+ }
+ *str = '\0';
b_reset(dest);
if (ctx->w == RES_FOR) {