From 922bb41a47e390ee3367fc41081d4470cac1202d Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 4 Jan 2010 10:21:11 +0100 Subject: remove typedef cmd_tbl_t and replace it with struct command Signed-off-by: Sascha Hauer --- common/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/module.c') 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++; } -- cgit v1.2.3