projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create a single cmd_call() function to handle command execution
[oweals/u-boot.git]
/
common
/
hush.c
diff --git
a/common/hush.c
b/common/hush.c
index e8e24d7deab952f7e7d0d429febfa94b464398d1..6cb921d4f35151a901b521e8e3b3878cb6582319 100644
(file)
--- a/
common/hush.c
+++ b/
common/hush.c
@@
-1679,13
+1679,10
@@
static int run_pipe_real(struct pipe *pi)
rcode = x->function(child);
#else
/* OK - call function to do the command */
rcode = x->function(child);
#else
/* OK - call function to do the command */
-
- rcode = (cmdtp->cmd)
-(cmdtp, flag,child->argc-i,&child->argv[i]);
- if ( !cmdtp->repeatable )
+ rcode = cmd_call(cmdtp, flag, child->argc-i,
+ &child->argv[i]);
+ if (!cmdtp->repeatable)
flag_repeat = 0;
flag_repeat = 0;
-
-
#endif
child->argv-=i; /* XXX restore hack so free() can work right */
#ifndef __U_BOOT__
#endif
child->argv-=i; /* XXX restore hack so free() can work right */
#ifndef __U_BOOT__