diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-01-04 10:21:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-02-01 17:25:32 +0100 |
commit | 922bb41a47e390ee3367fc41081d4470cac1202d (patch) | |
tree | a0fb507db0cb768f2d77adf26d6be5c9057d2187 /commands | |
parent | 88351d2e4bcf25fef3818c951e89180c764389ed (diff) | |
download | barebox-922bb41a47e390ee3367fc41081d4470cac1202d.tar.gz barebox-922bb41a47e390ee3367fc41081d4470cac1202d.tar.xz |
remove typedef cmd_tbl_t and replace it with struct command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
46 files changed, 59 insertions, 59 deletions
diff --git a/commands/bmp.c b/commands/bmp.c index 51989e14f9..6e17200a1a 100644 --- a/commands/bmp.c +++ b/commands/bmp.c @@ -29,7 +29,7 @@ static inline void set_pixel(struct fb_info *info, void *adr, int r, int g, int } } -static int do_bmp(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_bmp(struct command *cmdtp, int argc, char *argv[]) { int ret, opt, fd; char *fbdev = "/dev/fb0"; diff --git a/commands/bootm.c b/commands/bootm.c index 849d4c20dd..11325dc075 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -52,7 +52,7 @@ * - loaded (first part of) image to header load address, * - disabled interrupts. */ -typedef void boot_os_Fcn (cmd_tbl_t *cmdtp, int flag, +typedef void boot_os_Fcn(struct command *cmdtp, int flag, int argc, char *argv[], ulong addr, /* of image to boot */ ulong *len_ptr, /* multi-file image length table */ @@ -364,7 +364,7 @@ static int handler_parse_options(struct image_data *data, int opt, char *optarg) return -1; } -static int do_bootm (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_bootm(struct command *cmdtp, int argc, char *argv[]) { ulong iflag; int opt; @@ -464,7 +464,7 @@ BAREBOX_CMD_START(bootm) BAREBOX_CMD_END #ifdef CONFIG_CMD_IMI -static int do_iminfo ( cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_iminfo(struct command *cmdtp, int argc, char *argv[]) { int arg; ulong addr; diff --git a/commands/cat.c b/commands/cat.c index c0a93d89d4..41b3324300 100644 --- a/commands/cat.c +++ b/commands/cat.c @@ -39,7 +39,7 @@ * @param[in] argc Argument count from command line * @param[in] argv List of input arguments */ -static int do_cat(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_cat(struct command *cmdtp, int argc, char *argv[]) { int ret; int fd, i; diff --git a/commands/cd.c b/commands/cd.c index 50e40b629e..a842f4dc20 100644 --- a/commands/cd.c +++ b/commands/cd.c @@ -30,7 +30,7 @@ #include <fs.h> #include <errno.h> -static int do_cd (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_cd(struct command *cmdtp, int argc, char *argv[]) { int ret; diff --git a/commands/clear.c b/commands/clear.c index 178842845f..7589a0c380 100644 --- a/commands/clear.c +++ b/commands/clear.c @@ -24,7 +24,7 @@ #include <command.h> #include <readkey.h> -static int do_clear (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_clear(struct command *cmdtp, int argc, char *argv[]) { printf(ANSI_CLEAR_SCREEN); diff --git a/commands/cp.c b/commands/cp.c index aa7b410e51..a0c7c84d48 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -37,7 +37,7 @@ * @param[in] argc Argument count from command line * @param[in] argv List of input arguments */ -static int do_cp ( cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_cp(struct command *cmdtp, int argc, char *argv[]) { int ret = 1; struct stat statbuf; diff --git a/commands/crc.c b/commands/crc.c index 17188c7e10..4842cdc82f 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -30,7 +30,7 @@ #include <malloc.h> #include <linux/ctype.h> -static int do_crc (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_crc(struct command *cmdtp, int argc, char *argv[]) { ulong start = 0, size = ~0, total = 0; ulong crc = 0, vcrc = 0; diff --git a/commands/dfu.c b/commands/dfu.c index fe865efb90..66fd6eaa62 100644 --- a/commands/dfu.c +++ b/commands/dfu.c @@ -95,7 +95,7 @@ static int dfu_do_parse_one(char *partstr, char **endstr, struct usb_dfu_dev *df * s = save mode (download whole image before flashing) * r = read back (firmware image can be downloaded back from host) */ -static int do_dfu(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_dfu(struct command *cmdtp, int argc, char *argv[]) { int opt, n = 0; struct usb_dfu_pdata pdata; diff --git a/commands/echo.c b/commands/echo.c index 49bd44ed8e..d5640a0f02 100644 --- a/commands/echo.c +++ b/commands/echo.c @@ -26,7 +26,7 @@ #include <fcntl.h> #include <errno.h> -static int do_echo (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_echo(struct command *cmdtp, int argc, char *argv[]) { int i, optind = 1; int fd = stdout, opt, newline = 1; diff --git a/commands/edit.c b/commands/edit.c index d292a5231b..e851f0f483 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -389,7 +389,7 @@ static void getwinsize(void) { } #endif -static int do_edit(cmd_tbl_t * cmdtp, int argc, char *argv[]) +static int do_edit(struct command * cmdtp, int argc, char *argv[]) { int lastscrcol; int i; diff --git a/commands/exec.c b/commands/exec.c index ce0a0a9900..5f093b7b38 100644 --- a/commands/exec.c +++ b/commands/exec.c @@ -29,7 +29,7 @@ #include <malloc.h> #include <xfuncs.h> -static int do_exec(cmd_tbl_t * cmdtp, int argc, char *argv[]) +static int do_exec(struct command * cmdtp, int argc, char *argv[]) { int i; char *script; diff --git a/commands/export.c b/commands/export.c index 3e2f84d9f8..31259cc9b4 100644 --- a/commands/export.c +++ b/commands/export.c @@ -28,7 +28,7 @@ #include <errno.h> #include <environment.h> -static int do_export ( cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_export(struct command *cmdtp, int argc, char *argv[]) { int i = 1; char *ptr; diff --git a/commands/false.c b/commands/false.c index fec3fdf713..a90eadcbb7 100644 --- a/commands/false.c +++ b/commands/false.c @@ -24,7 +24,7 @@ #include <common.h> #include <command.h> -static int do_false (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_false(struct command *cmdtp, int argc, char *argv[]) { return 1; } diff --git a/commands/flash.c b/commands/flash.c index ec793c5312..f92b60404f 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -37,7 +37,7 @@ #include <fcntl.h> #include <linux/stat.h> -static int do_flerase (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_flerase(struct command *cmdtp, int argc, char *argv[]) { int fd; char *filename = NULL; @@ -107,7 +107,7 @@ BAREBOX_CMD_END * Refer \b addpart, \b delpart and \b devinfo for partition handling. */ -static int do_protect (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_protect(struct command *cmdtp, int argc, char *argv[]) { int fd; char *filename = NULL; diff --git a/commands/go.c b/commands/go.c index e720e32352..588d6fcd68 100644 --- a/commands/go.c +++ b/commands/go.c @@ -30,7 +30,7 @@ #include <linux/ctype.h> #include <errno.h> -static int do_go (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_go(struct command *cmdtp, int argc, char *argv[]) { void *addr; int rcode = 1; diff --git a/commands/gpio.c b/commands/gpio.c index 58bf8b6378..2575c1e50e 100644 --- a/commands/gpio.c +++ b/commands/gpio.c @@ -20,7 +20,7 @@ #include <errno.h> #include <gpio.h> -static int do_gpio_get_value(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_gpio_get_value(struct command *cmdtp, int argc, char *argv[]) { int gpio, value; @@ -45,7 +45,7 @@ BAREBOX_CMD_START(gpio_get_value) BAREBOX_CMD_HELP(cmd_gpio_get_value_help) BAREBOX_CMD_END -static int do_gpio_set_value(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_gpio_set_value(struct command *cmdtp, int argc, char *argv[]) { int gpio, value; @@ -69,7 +69,7 @@ BAREBOX_CMD_START(gpio_set_value) BAREBOX_CMD_HELP(cmd_gpio_set_value_help) BAREBOX_CMD_END -static int do_gpio_direction_input(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_gpio_direction_input(struct command *cmdtp, int argc, char *argv[]) { int gpio, ret; @@ -94,7 +94,7 @@ BAREBOX_CMD_START(gpio_direction_input) BAREBOX_CMD_HELP(cmd_do_gpio_direction_input_help) BAREBOX_CMD_END -static int do_gpio_direction_output(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_gpio_direction_output(struct command *cmdtp, int argc, char *argv[]) { int gpio, value, ret; diff --git a/commands/help.c b/commands/help.c index d8c67cddbe..f8387bd614 100644 --- a/commands/help.c +++ b/commands/help.c @@ -28,7 +28,7 @@ * Use puts() instead of printf() to avoid printf buffer overflow * for long help messages */ -static int do_help (cmd_tbl_t * cmdtp, int argc, char *argv[]) +static int do_help(struct command * cmdtp, int argc, char *argv[]) { if (argc == 1) { /* show list of commands */ for_each_command(cmdtp) { diff --git a/commands/insmod.c b/commands/insmod.c index e14af49f7d..d3b4d1ad6b 100644 --- a/commands/insmod.c +++ b/commands/insmod.c @@ -5,7 +5,7 @@ #include <fs.h> #include <malloc.h> -static int do_insmod (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_insmod(struct command *cmdtp, int argc, char *argv[]) { struct module *module; void *buf; diff --git a/commands/loadb.c b/commands/loadb.c index efb1a3cd80..6740ef4a48 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -688,7 +688,7 @@ static struct console_device *get_current_console(void) * * @return success or failure */ -static int do_load_serial_bin(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_load_serial_bin(struct command *cmdtp, int argc, char *argv[]) { ulong offset = 0; ulong addr; diff --git a/commands/loadenv.c b/commands/loadenv.c index 8b885abf23..14fbf1e336 100644 --- a/commands/loadenv.c +++ b/commands/loadenv.c @@ -27,7 +27,7 @@ #include <command.h> #include <environment.h> -static int do_loadenv(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_loadenv(struct command *cmdtp, int argc, char *argv[]) { char *filename, *dirname; diff --git a/commands/loads.c b/commands/loads.c index 2578c1525d..8269af1955 100644 --- a/commands/loads.c +++ b/commands/loads.c @@ -42,7 +42,7 @@ static int save_serial (ulong offset, ulong size); static int write_record (char *buf); # endif /* CFG_CMD_SAVES */ -int do_load_serial (cmd_tbl_t *cmdtp, int argc, char *argv[]) +int do_load_serial(struct command *cmdtp, int argc, char *argv[]) { ulong offset = 0; ulong addr; @@ -233,7 +233,7 @@ read_record (char *buf, ulong len) #if (CONFIG_COMMANDS & CFG_CMD_SAVES) -int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +int do_save_serial(struct command *cmdtp, int flag, int argc, char *argv[]) { ulong offset = 0; ulong size = 0; diff --git a/commands/ls.c b/commands/ls.c index 4d880e514a..a02ccfe772 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -111,7 +111,7 @@ out: return 0; } -static int do_ls (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_ls(struct command *cmdtp, int argc, char *argv[]) { int ret, opt, o; struct stat s; diff --git a/commands/lsmod.c b/commands/lsmod.c index 696304d11b..26d2fe4e34 100644 --- a/commands/lsmod.c +++ b/commands/lsmod.c @@ -2,7 +2,7 @@ #include <command.h> #include <module.h> -static int do_lsmod (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_lsmod(struct command *cmdtp, int argc, char *argv[]) { struct module *mod; diff --git a/commands/mem.c b/commands/mem.c index f06bc64f01..6192466522 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -163,7 +163,7 @@ static int mem_parse_options(int argc, char *argv[], char *optstr, int *mode, return 0; } -static int do_mem_md(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mem_md(struct command *cmdtp, int argc, char *argv[]) { ulong start = 0, size = 0x100; int r, now; @@ -238,7 +238,7 @@ BAREBOX_CMD_START(md) BAREBOX_CMD_HELP(cmd_md_help) BAREBOX_CMD_END -static int do_mem_mw ( cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mem_mw(struct command *cmdtp, int argc, char *argv[]) { int ret = 0; int fd; @@ -301,7 +301,7 @@ BAREBOX_CMD_START(mw) BAREBOX_CMD_HELP(cmd_mw_help) BAREBOX_CMD_END -static int do_mem_cmp(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mem_cmp(struct command *cmdtp, int argc, char *argv[]) { ulong addr1, addr2, count = ~0; int mode = O_RWSIZE_1; @@ -410,7 +410,7 @@ BAREBOX_CMD_START(memcmp) BAREBOX_CMD_HELP(cmd_memcmp_help) BAREBOX_CMD_END -static int do_mem_cp(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mem_cp(struct command *cmdtp, int argc, char *argv[]) { ulong count; ulong dest, src; @@ -506,7 +506,7 @@ BAREBOX_CMD_START(memcpy) BAREBOX_CMD_HELP(cmd_memcpy_help) BAREBOX_CMD_END -static int do_memset(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_memset(struct command *cmdtp, int argc, char *argv[]) { ulong s, c, n; int fd; diff --git a/commands/meminfo.c b/commands/meminfo.c index 76caf0a4ff..abbaf9c0d7 100644 --- a/commands/meminfo.c +++ b/commands/meminfo.c @@ -23,7 +23,7 @@ #include <command.h> #include <malloc.h> -static int do_meminfo (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_meminfo(struct command *cmdtp, int argc, char *argv[]) { malloc_stats(); diff --git a/commands/memtest.c b/commands/memtest.c index 4038aceb7b..d9c8b3d89e 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -322,7 +322,7 @@ static int mem_test(ulong _start, ulong _end, ulong pattern) } #endif -static int do_mem_mtest (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mem_mtest(struct command *cmdtp, int argc, char *argv[]) { ulong start, end, pattern = 0; diff --git a/commands/mkdir.c b/commands/mkdir.c index d5f58f0279..b66795b6e2 100644 --- a/commands/mkdir.c +++ b/commands/mkdir.c @@ -26,7 +26,7 @@ #include <errno.h> #include <getopt.h> -static int do_mkdir (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mkdir(struct command *cmdtp, int argc, char *argv[]) { int opt, parent = 0, ret; diff --git a/commands/mount.c b/commands/mount.c index 41735c8349..8e4388ecd8 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -30,7 +30,7 @@ #include <fs.h> #include <errno.h> -static int do_mount (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_mount(struct command *cmdtp, int argc, char *argv[]) { int ret = 0; struct mtab_entry *entry = NULL; diff --git a/commands/nand.c b/commands/nand.c index 55b89af31b..7a4e995236 100644 --- a/commands/nand.c +++ b/commands/nand.c @@ -279,7 +279,7 @@ out1: #define NAND_DEL (1 << 1) #define NAND_MARKBAD (1 << 2) -static int do_nand(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_nand(struct command *cmdtp, int argc, char *argv[]) { int opt; struct nand_bb *bb; diff --git a/commands/net.c b/commands/net.c index 5fa49cf102..815a566a2b 100644 --- a/commands/net.c +++ b/commands/net.c @@ -76,7 +76,7 @@ void netboot_update_env(void) #ifdef CONFIG_NET_RARP extern void RarpRequest(void); -static int do_rarpb (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_rarpb(struct command *cmdtp, int argc, char *argv[]) { int size; @@ -102,7 +102,7 @@ BAREBOX_CMD_START(rarpboot) BAREBOX_CMD_END #endif /* CONFIG_NET_RARP */ -static int do_ethact (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_ethact(struct command *cmdtp, int argc, char *argv[]) { struct eth_device *edev; diff --git a/commands/partition.c b/commands/partition.c index 3cb7b612f5..e4645e8348 100755 --- a/commands/partition.c +++ b/commands/partition.c @@ -99,7 +99,7 @@ static int mtd_part_do_parse_one(char *devname, const char *partstr, return ret; } -static int do_addpart(cmd_tbl_t * cmdtp, int argc, char *argv[]) +static int do_addpart(struct command * cmdtp, int argc, char *argv[]) { char *devname; char *endp; @@ -180,7 +180,7 @@ BAREBOX_CMD_END * @note This command has to be reworked and will probably change it's API. */ -static int do_delpart(cmd_tbl_t * cmdtp, int argc, char *argv[]) +static int do_delpart(struct command * cmdtp, int argc, char *argv[]) { int i, err; diff --git a/commands/printenv.c b/commands/printenv.c index 5490980c79..e6fc0e4e55 100644 --- a/commands/printenv.c +++ b/commands/printenv.c @@ -28,7 +28,7 @@ #include <errno.h> #include <environment.h> -static int do_printenv (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_printenv(struct command *cmdtp, int argc, char *argv[]) { struct variable_d *var; struct env_context *c, *current_c; diff --git a/commands/pwd.c b/commands/pwd.c index 6c3cbb976d..d51fa1a17b 100644 --- a/commands/pwd.c +++ b/commands/pwd.c @@ -23,7 +23,7 @@ #include <command.h> #include <fs.h> -static int do_pwd (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_pwd(struct command *cmdtp, int argc, char *argv[]) { printf("%s\n", getcwd()); return 0; diff --git a/commands/readline.c b/commands/readline.c index 55c288cb8d..cf2625ff7f 100644 --- a/commands/readline.c +++ b/commands/readline.c @@ -27,7 +27,7 @@ #include <xfuncs.h> #include <environment.h> -static int do_readline (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_readline(struct command *cmdtp, int argc, char *argv[]) { char *buf = xzalloc(CONFIG_CBSIZE); diff --git a/commands/reginfo.c b/commands/reginfo.c index f11a73c85d..90651d5a3a 100644 --- a/commands/reginfo.c +++ b/commands/reginfo.c @@ -23,7 +23,7 @@ #include <common.h> #include <command.h> -static int do_reginfo (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_reginfo(struct command *cmdtp, int argc, char *argv[]) { reginfo(); return 0; diff --git a/commands/reset.c b/commands/reset.c index f148623525..46ab90153f 100644 --- a/commands/reset.c +++ b/commands/reset.c @@ -23,7 +23,7 @@ #include <common.h> #include <command.h> -static int cmd_reset (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int cmd_reset(struct command *cmdtp, int argc, char *argv[]) { reset_cpu(0); diff --git a/commands/rm.c b/commands/rm.c index 869460694f..3437ae5784 100644 --- a/commands/rm.c +++ b/commands/rm.c @@ -24,7 +24,7 @@ #include <fs.h> #include <errno.h> -static int do_rm (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_rm(struct command *cmdtp, int argc, char *argv[]) { int i = 1; diff --git a/commands/rmdir.c b/commands/rmdir.c index 3531f32d7f..83a0b027de 100644 --- a/commands/rmdir.c +++ b/commands/rmdir.c @@ -3,7 +3,7 @@ #include <fs.h> #include <errno.h> -static int do_rmdir (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_rmdir(struct command *cmdtp, int argc, char *argv[]) { int i = 1; diff --git a/commands/saveenv.c b/commands/saveenv.c index 6a9da5cabb..42ea58f4da 100644 --- a/commands/saveenv.c +++ b/commands/saveenv.c @@ -30,7 +30,7 @@ #include <fcntl.h> #include <environment.h> -static int do_saveenv(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_saveenv(struct command *cmdtp, int argc, char *argv[]) { int ret, fd; char *filename, *dirname; diff --git a/commands/setenv.c b/commands/setenv.c index 16b81776a2..257348f80a 100644 --- a/commands/setenv.c +++ b/commands/setenv.c @@ -28,7 +28,7 @@ #include <errno.h> #include <environment.h> -static int do_setenv ( cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_setenv(struct command *cmdtp, int argc, char *argv[]) { if (argc < 2) return COMMAND_ERROR_USAGE; diff --git a/commands/sleep.c b/commands/sleep.c index d88f39efb9..40a3a47ef9 100644 --- a/commands/sleep.c +++ b/commands/sleep.c @@ -24,7 +24,7 @@ #include <command.h> #include <clock.h> -static int do_sleep (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_sleep(struct command *cmdtp, int argc, char *argv[]) { uint64_t start; ulong delay; diff --git a/commands/test.c b/commands/test.c index afabe1234d..4af35156ce 100644 --- a/commands/test.c +++ b/commands/test.c @@ -76,7 +76,7 @@ static int parse_opt(const char *opt) return -1; } -static int do_test (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_test(struct command *cmdtp, int argc, char *argv[]) { char **ap; int left, adv, expr, last_expr, neg, last_cmp, opt, zero; diff --git a/commands/timeout.c b/commands/timeout.c index dfbefc9c75..5f2ab9a206 100644 --- a/commands/timeout.c +++ b/commands/timeout.c @@ -31,7 +31,7 @@ #define TIMEOUT_ANYKEY (1 << 2) #define TIMEOUT_SILENT (1 << 3) -static int do_timeout(cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_timeout(struct command *cmdtp, int argc, char *argv[]) { int timeout = 3, ret = 1; int flags = 0, opt, countdown; diff --git a/commands/true.c b/commands/true.c index 4697a81157..8c77dec26a 100644 --- a/commands/true.c +++ b/commands/true.c @@ -24,7 +24,7 @@ #include <common.h> #include <command.h> -static int do_true (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_true(struct command *cmdtp, int argc, char *argv[]) { return 0; } diff --git a/commands/umount.c b/commands/umount.c index 0dc517a322..6ae5844112 100644 --- a/commands/umount.c +++ b/commands/umount.c @@ -24,7 +24,7 @@ #include <fs.h> #include <errno.h> -static int do_umount (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_umount(struct command *cmdtp, int argc, char *argv[]) { int ret = 0; diff --git a/commands/version.c b/commands/version.c index 425f430f14..6c683d9bff 100644 --- a/commands/version.c +++ b/commands/version.c @@ -24,7 +24,7 @@ #include <common.h> #include <command.h> -static int do_version (cmd_tbl_t *cmdtp, int argc, char *argv[]) +static int do_version(struct command *cmdtp, int argc, char *argv[]) { extern char version_string[]; printf ("\n%s\n", version_string); |