summaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c
index 2c0bf53449..c5cecd3bf5 100644
--- a/common/command.c
+++ b/common/command.c
@@ -479,7 +479,8 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
#ifdef CONFIG_AUTO_COMPLETE
if (cmdtp->complete) {
addr = (ulong)(cmdtp->complete) + gd->reloc_off;
- cmdtp->complete = (char *)addr;
+ cmdtp->complete =
+ (int (*)(int, char * const [], char, int, char * []))addr;
}
#endif
cmdtp++;