summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-30 00:29:55 +0000
committerDenis Vlasenko2007-05-30 00:29:55 +0000
commit4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b (patch)
tree7dfc507c1a7d14fb61d4fd0c68481e01b4a36ba1 /shell
parent4ef7d3a2de3df27dde80a64987202f10aebfe925 (diff)
downloadbusybox-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.zip
busybox-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.tar.gz
whitespace fixes
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c8
-rw-r--r--shell/msh.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 6844f06..7aad6e6 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -415,7 +415,7 @@ enum { run_list_level = 0 };
#define shell_ver (G.shell_ver )
#if ENABLE_FEATURE_SH_STANDALONE
#define nofork_save (G.nofork_save )
-#endif
+#endif
#if ENABLE_HUSH_JOB
#define toplevel_jb (G.toplevel_jb )
#endif
@@ -1876,7 +1876,7 @@ static int run_pipe_real(struct pipe *pi)
return -1;
}
-#ifndef debug_print_tree
+#ifndef debug_print_tree
static void debug_print_tree(struct pipe *pi, int lvl)
{
static const char *PIPE[] = {
@@ -1929,7 +1929,7 @@ static void debug_print_tree(struct pipe *pi, int lvl)
if (argv) while (*argv) {
fprintf(stderr, " '%s'", *argv);
argv++;
- }
+ }
fprintf(stderr, "\n");
prn++;
}
@@ -2114,7 +2114,7 @@ static int run_list_real(struct pipe *pi)
* try "{ { sleep 10; echo DEEP; } & echo HERE; } &".
* I'm NOT treating inner &'s as jobs */
#if ENABLE_HUSH_JOB
- if (run_list_level == 1)
+ if (run_list_level == 1)
insert_bg_job(pi);
#endif
rcode = EXIT_SUCCESS;
diff --git a/shell/msh.c b/shell/msh.c
index ac49af1..d81a001 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -58,10 +58,10 @@ static char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
for (i = 1000000000; i; i /= 10) {
res = n / i;
if (res || out || i == 1) {
- if (!--buflen) break;
- out++;
- n -= res*i;
- *buf++ = '0' + res;
+ if (!--buflen) break;
+ out++;
+ n -= res*i;
+ *buf++ = '0' + res;
}
}
}