summaryrefslogtreecommitdiffstats
path: root/common/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/module.c')
-rw-r--r--common/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/module.c b/common/module.c
index cedd7029bf..29f3eb78c6 100644
--- a/common/module.c
+++ b/common/module.c
@@ -297,8 +297,8 @@ struct module * load_module(void *mod_image, unsigned long len)
#ifdef CONFIG_COMMAND
cmdindex = find_sec(ehdr, sechdrs, secstrings, ".barebox_cmd");
if (cmdindex) {
- cmd_tbl_t *cmd = (cmd_tbl_t *)sechdrs[cmdindex].sh_addr;
- for (i = 0; i < sechdrs[cmdindex].sh_size / sizeof(cmd_tbl_t); i++) {
+ struct command *cmd =(struct command *)sechdrs[cmdindex].sh_addr;
+ for (i = 0; i < sechdrs[cmdindex].sh_size / sizeof(struct command); i++) {
register_command(cmd);
cmd++;
}