aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
commitbf0a201008671f81c107de72c026b1b84967561d (patch)
treeaf74820b70fa27929fe218c95822c20651b60637 /shell/lash.c
parent5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff)
downloadbusybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.gz
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.bz2
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.zip
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 525767190..52b117431 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -789,7 +789,7 @@ static int expand_arguments(char *command)
789 src = command; 789 src = command;
790 while((dst = strchr(src,'$')) != NULL){ 790 while((dst = strchr(src,'$')) != NULL){
791 var = NULL; 791 var = NULL;
792 switch(*(dst+1)) { 792 switch (*(dst+1)) {
793 case '?': 793 case '?':
794 var = itoa(last_return_code); 794 var = itoa(last_return_code);
795 break; 795 break;
@@ -1163,7 +1163,7 @@ static int pseudo_exec(struct child_prog *child)
1163 char **argv_l = child->argv; 1163 char **argv_l = child->argv;
1164 int argc_l; 1164 int argc_l;
1165 1165
1166 for(argc_l=0; *argv_l; argv_l++, argc_l++); 1166 for (argc_l=0; *argv_l; argv_l++, argc_l++);
1167 optind = 1; 1167 optind = 1;
1168 run_applet_by_name(child->argv[0], argc_l, child->argv); 1168 run_applet_by_name(child->argv[0], argc_l, child->argv);
1169 } 1169 }