diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-24 15:40:16 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-24 15:40:16 +0000 |
commit | ea68635ff13da0351083608d69032e470f487569 (patch) | |
tree | a74e8ce7604ff932a3990de3065c167392e4b082 /shell | |
parent | d9b3977dfc9f8fc0c5abab26c650ff4422100cf4 (diff) | |
download | busybox-w32-ea68635ff13da0351083608d69032e470f487569.tar.gz busybox-w32-ea68635ff13da0351083608d69032e470f487569.tar.bz2 busybox-w32-ea68635ff13da0351083608d69032e470f487569.zip |
random style fixes (extra spaces deleted)
git-svn-id: svn://busybox.net/trunk/busybox@18228 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 4 | ||||
-rw-r--r-- | shell/lash.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c index 7658aebed..5bc83bc41 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1095,7 +1095,7 @@ static void pseudo_exec(struct child_prog *child) | |||
1095 | * if this is one of those cases. | 1095 | * if this is one of those cases. |
1096 | */ | 1096 | */ |
1097 | for (x = bltins; x->cmd; x++) { | 1097 | for (x = bltins; x->cmd; x++) { |
1098 | if (strcmp(child->argv[0], x->cmd) == 0 ) { | 1098 | if (strcmp(child->argv[0], x->cmd) == 0) { |
1099 | debug_printf("builtin exec %s\n", child->argv[0]); | 1099 | debug_printf("builtin exec %s\n", child->argv[0]); |
1100 | rcode = x->function(child); | 1100 | rcode = x->function(child); |
1101 | fflush(stdout); | 1101 | fflush(stdout); |
@@ -1369,7 +1369,7 @@ static int run_pipe_real(struct pipe *pi) | |||
1369 | return last_return_code; | 1369 | return last_return_code; |
1370 | } | 1370 | } |
1371 | for (x = bltins; x->cmd; x++) { | 1371 | for (x = bltins; x->cmd; x++) { |
1372 | if (strcmp(child->argv[i], x->cmd) == 0 ) { | 1372 | if (strcmp(child->argv[i], x->cmd) == 0) { |
1373 | int squirrel[] = { -1, -1, -1 }; | 1373 | int squirrel[] = { -1, -1, -1 }; |
1374 | int rcode; | 1374 | int rcode; |
1375 | if (x->function == builtin_exec && child->argv[i+1] == NULL) { | 1375 | if (x->function == builtin_exec && child->argv[i+1] == NULL) { |
diff --git a/shell/lash.c b/shell/lash.c index 09067fda0..f938a74b9 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -1138,7 +1138,7 @@ static int pseudo_exec(struct child_prog *child) | |||
1138 | * if this is one of those cases. | 1138 | * if this is one of those cases. |
1139 | */ | 1139 | */ |
1140 | for (x = bltins; x->cmd; x++) { | 1140 | for (x = bltins; x->cmd; x++) { |
1141 | if (strcmp(child->argv[0], x->cmd) == 0 ) { | 1141 | if (strcmp(child->argv[0], x->cmd) == 0) { |
1142 | _exit(x->function(child)); | 1142 | _exit(x->function(child)); |
1143 | } | 1143 | } |
1144 | } | 1144 | } |
@@ -1262,7 +1262,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2]) | |||
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | for (x = bltins; x->cmd; x++) { | 1264 | for (x = bltins; x->cmd; x++) { |
1265 | if (strcmp(child->argv[0], x->cmd) == 0 ) { | 1265 | if (strcmp(child->argv[0], x->cmd) == 0) { |
1266 | int rcode; | 1266 | int rcode; |
1267 | int squirrel[] = {-1, -1, -1}; | 1267 | int squirrel[] = {-1, -1, -1}; |
1268 | setup_redirects(child, squirrel); | 1268 | setup_redirects(child, squirrel); |