From 33d1cc4bf2253842d9a30dc9ca38beb30dd5b5ae Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 21 Dec 2011 14:18:57 +0100 Subject: commands: remove struct command pointer from commands This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer --- commands/bmp.c | 2 +- commands/bootm.c | 2 +- commands/cat.c | 3 +-- commands/cd.c | 2 +- commands/clear.c | 2 +- commands/cp.c | 3 +-- commands/crc.c | 2 +- commands/dfu.c | 2 +- commands/digest.c | 8 ++++---- commands/echo.c | 2 +- commands/edit.c | 2 +- commands/exec.c | 2 +- commands/export.c | 2 +- commands/false.c | 2 +- commands/flash.c | 4 ++-- commands/go.c | 2 +- commands/gpio.c | 8 ++++---- commands/help.c | 4 +++- commands/i2c.c | 6 +++--- commands/insmod.c | 2 +- commands/iomem.c | 2 +- commands/led.c | 2 +- commands/linux16.c | 3 +-- commands/linux_exec.c | 2 +- commands/loadb.c | 2 +- commands/loadenv.c | 2 +- commands/loads.c | 4 ++-- commands/login.c | 2 +- commands/ls.c | 2 +- commands/lsmod.c | 2 +- commands/magicvar.c | 2 +- commands/mem.c | 10 +++++----- commands/meminfo.c | 2 +- commands/memtest.c | 2 +- commands/menu.c | 2 +- commands/mkdir.c | 2 +- commands/mount.c | 2 +- commands/nand.c | 2 +- commands/nandtest.c | 2 +- commands/net.c | 4 ++-- commands/oftree.c | 2 +- commands/partition.c | 4 ++-- commands/passwd.c | 2 +- commands/printenv.c | 2 +- commands/pwd.c | 2 +- commands/readline.c | 2 +- commands/reginfo.c | 2 +- commands/reset.c | 2 +- commands/rm.c | 2 +- commands/rmdir.c | 2 +- commands/saveenv.c | 2 +- commands/setenv.c | 2 +- commands/sleep.c | 2 +- commands/test.c | 2 +- commands/time.c | 2 +- commands/timeout.c | 2 +- commands/trigger.c | 2 +- commands/true.c | 2 +- commands/ubi.c | 6 +++--- commands/uimage.c | 2 +- commands/umount.c | 2 +- commands/uncompress.c | 2 +- commands/usb.c | 2 +- commands/usbserial.c | 2 +- commands/version.c | 2 +- 65 files changed, 85 insertions(+), 86 deletions(-) (limited to 'commands') diff --git a/commands/bmp.c b/commands/bmp.c index 644a977312..4130474931 100644 --- a/commands/bmp.c +++ b/commands/bmp.c @@ -30,7 +30,7 @@ static inline void set_pixel(struct fb_info *info, void *adr, int r, int g, int } } -static int do_bmp(struct command *cmdtp, int argc, char *argv[]) +static int do_bmp(int argc, char *argv[]) { int ret, opt, fd; char *fbdev = "/dev/fb0"; diff --git a/commands/bootm.c b/commands/bootm.c index e96665adcf..4f174dbc77 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -252,7 +252,7 @@ static void bootm_image_name_and_no(char *name, int *no) *no = simple_strtoul(at, NULL, 10); } -static int do_bootm(struct command *cmdtp, int argc, char *argv[]) +static int do_bootm(int argc, char *argv[]) { int opt; struct image_handler *handler; diff --git a/commands/cat.c b/commands/cat.c index 37e65050c3..d65a024628 100644 --- a/commands/cat.c +++ b/commands/cat.c @@ -35,11 +35,10 @@ #define BUFSIZE 1024 /** - * @param[in] cmdtp FIXME * @param[in] argc Argument count from command line * @param[in] argv List of input arguments */ -static int do_cat(struct command *cmdtp, int argc, char *argv[]) +static int do_cat(int argc, char *argv[]) { int ret; int fd, i; diff --git a/commands/cd.c b/commands/cd.c index d73be32ab9..ab5c417ce6 100644 --- a/commands/cd.c +++ b/commands/cd.c @@ -30,7 +30,7 @@ #include #include -static int do_cd(struct command *cmdtp, int argc, char *argv[]) +static int do_cd(int argc, char *argv[]) { int ret; diff --git a/commands/clear.c b/commands/clear.c index 6a6b6c5a2d..9e5da10d4f 100644 --- a/commands/clear.c +++ b/commands/clear.c @@ -24,7 +24,7 @@ #include #include -static int do_clear(struct command *cmdtp, int argc, char *argv[]) +static int do_clear(int argc, char *argv[]) { printf(ANSI_CLEAR_SCREEN); diff --git a/commands/cp.c b/commands/cp.c index 565eca0c4a..a0434cbe9b 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -35,11 +35,10 @@ #include /** - * @param[in] cmdtp FIXME * @param[in] argc Argument count from command line * @param[in] argv List of input arguments */ -static int do_cp(struct command *cmdtp, int argc, char *argv[]) +static int do_cp(int argc, char *argv[]) { int ret = 1; struct stat statbuf; diff --git a/commands/crc.c b/commands/crc.c index 8ce97da530..df229410f6 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -82,7 +82,7 @@ out: return ret; } -static int do_crc(struct command *cmdtp, int argc, char *argv[]) +static int do_crc(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 7f2dfedfde..eab65e519a 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(struct command *cmdtp, int argc, char *argv[]) +static int do_dfu(int argc, char *argv[]) { int opt, n = 0; struct usb_dfu_pdata pdata; diff --git a/commands/digest.c b/commands/digest.c index fbeadf9b4b..84329144c7 100644 --- a/commands/digest.c +++ b/commands/digest.c @@ -78,7 +78,7 @@ static int do_digest(char *algorithm, int argc, char *argv[]) #ifdef CONFIG_CMD_MD5SUM -static int do_md5(struct command *cmdtp, int argc, char *argv[]) +static int do_md5(int argc, char *argv[]) { return do_digest("md5", argc, argv); } @@ -98,7 +98,7 @@ BAREBOX_CMD_END #ifdef CONFIG_CMD_SHA1SUM -static int do_sha1(struct command *cmdtp, int argc, char *argv[]) +static int do_sha1(int argc, char *argv[]) { return do_digest("sha1", argc, argv); } @@ -118,7 +118,7 @@ BAREBOX_CMD_END #ifdef CONFIG_CMD_SHA224SUM -static int do_sha224(struct command *cmdtp, int argc, char *argv[]) +static int do_sha224(int argc, char *argv[]) { return do_digest("sha224", argc, argv); } @@ -138,7 +138,7 @@ BAREBOX_CMD_END #ifdef CONFIG_CMD_SHA256SUM -static int do_sha256(struct command *cmdtp, int argc, char *argv[]) +static int do_sha256(int argc, char *argv[]) { return do_digest("sha256", argc, argv); } diff --git a/commands/echo.c b/commands/echo.c index 3e098df1d0..114c1ba662 100644 --- a/commands/echo.c +++ b/commands/echo.c @@ -27,7 +27,7 @@ #include #include -static int do_echo(struct command *cmdtp, int argc, char *argv[]) +static int do_echo(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 3519b096fd..db2f89aa04 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -387,7 +387,7 @@ static void getwinsize(void) { } #endif -static int do_edit(struct command * cmdtp, int argc, char *argv[]) +static int do_edit(int argc, char *argv[]) { int lastscrcol; int i; diff --git a/commands/exec.c b/commands/exec.c index 5f093b7b38..a25e8cf864 100644 --- a/commands/exec.c +++ b/commands/exec.c @@ -29,7 +29,7 @@ #include #include -static int do_exec(struct command * cmdtp, int argc, char *argv[]) +static int do_exec(int argc, char *argv[]) { int i; char *script; diff --git a/commands/export.c b/commands/export.c index 98b1e1a8fc..ebf7723568 100644 --- a/commands/export.c +++ b/commands/export.c @@ -28,7 +28,7 @@ #include #include -static int do_export(struct command *cmdtp, int argc, char *argv[]) +static int do_export(int argc, char *argv[]) { int i = 1; char *ptr; diff --git a/commands/false.c b/commands/false.c index a90eadcbb7..6ba3823229 100644 --- a/commands/false.c +++ b/commands/false.c @@ -24,7 +24,7 @@ #include #include -static int do_false(struct command *cmdtp, int argc, char *argv[]) +static int do_false(int argc, char *argv[]) { return 1; } diff --git a/commands/flash.c b/commands/flash.c index 85efd06e43..1fcb1cff00 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -36,7 +36,7 @@ #include #include -static int do_flerase(struct command *cmdtp, int argc, char *argv[]) +static int do_flerase(int argc, char *argv[]) { int fd; char *filename = NULL; @@ -103,7 +103,7 @@ devinfo_command for partition handling. */ -static int do_protect(struct command *cmdtp, int argc, char *argv[]) +static int do_protect(int argc, char *argv[]) { int fd; char *filename = NULL; diff --git a/commands/go.c b/commands/go.c index 6082fe54e3..b97fcef32a 100644 --- a/commands/go.c +++ b/commands/go.c @@ -30,7 +30,7 @@ #include #include -static int do_go(struct command *cmdtp, int argc, char *argv[]) +static int do_go(int argc, char *argv[]) { void *addr; int rcode = 1; diff --git a/commands/gpio.c b/commands/gpio.c index 073c9d3bac..fe37665750 100644 --- a/commands/gpio.c +++ b/commands/gpio.c @@ -20,7 +20,7 @@ #include #include -static int do_gpio_get_value(struct command *cmdtp, int argc, char *argv[]) +static int do_gpio_get_value(int argc, char *argv[]) { int gpio, value; @@ -47,7 +47,7 @@ BAREBOX_CMD_START(gpio_get_value) BAREBOX_CMD_HELP(cmd_gpio_get_value_help) BAREBOX_CMD_END -static int do_gpio_set_value(struct command *cmdtp, int argc, char *argv[]) +static int do_gpio_set_value(int argc, char *argv[]) { int gpio, value; @@ -73,7 +73,7 @@ BAREBOX_CMD_START(gpio_set_value) BAREBOX_CMD_HELP(cmd_gpio_set_value_help) BAREBOX_CMD_END -static int do_gpio_direction_input(struct command *cmdtp, int argc, char *argv[]) +static int do_gpio_direction_input(int argc, char *argv[]) { int gpio, ret; @@ -100,7 +100,7 @@ BAREBOX_CMD_START(gpio_direction_input) BAREBOX_CMD_HELP(cmd_gpio_direction_input_help) BAREBOX_CMD_END -static int do_gpio_direction_output(struct command *cmdtp, int argc, char *argv[]) +static int do_gpio_direction_output(int argc, char *argv[]) { int gpio, value, ret; diff --git a/commands/help.c b/commands/help.c index f8387bd614..706b9057e9 100644 --- a/commands/help.c +++ b/commands/help.c @@ -28,8 +28,10 @@ * Use puts() instead of printf() to avoid printf buffer overflow * for long help messages */ -static int do_help(struct command * cmdtp, int argc, char *argv[]) +static int do_help(int argc, char *argv[]) { + struct command *cmdtp; + if (argc == 1) { /* show list of commands */ for_each_command(cmdtp) { if (!cmdtp->usage) diff --git a/commands/i2c.c b/commands/i2c.c index d38e779acb..b3d09dcb7c 100644 --- a/commands/i2c.c +++ b/commands/i2c.c @@ -26,7 +26,7 @@ #include #include -static int do_i2c_probe(struct command *cmdtp, int argc, char *argv[]) +static int do_i2c_probe(int argc, char *argv[]) { struct i2c_adapter *adapter; struct i2c_client client; @@ -70,7 +70,7 @@ BAREBOX_CMD_START(i2c_probe) BAREBOX_CMD_HELP(cmd_i2c_probe_help) BAREBOX_CMD_END -static int do_i2c_write(struct command *cmdtp, int argc, char *argv[]) +static int do_i2c_write(int argc, char *argv[]) { struct i2c_adapter *adapter = NULL; struct i2c_client client; @@ -143,7 +143,7 @@ BAREBOX_CMD_START(i2c_write) BAREBOX_CMD_HELP(cmd_i2c_write_help) BAREBOX_CMD_END -static int do_i2c_read(struct command *cmdtp, int argc, char *argv[]) +static int do_i2c_read(int argc, char *argv[]) { struct i2c_adapter *adapter = NULL; struct i2c_client client; diff --git a/commands/insmod.c b/commands/insmod.c index d3b4d1ad6b..f547e9dd6b 100644 --- a/commands/insmod.c +++ b/commands/insmod.c @@ -5,7 +5,7 @@ #include #include -static int do_insmod(struct command *cmdtp, int argc, char *argv[]) +static int do_insmod(int argc, char *argv[]) { struct module *module; void *buf; diff --git a/commands/iomem.c b/commands/iomem.c index 78566c1f5b..96b03bab80 100644 --- a/commands/iomem.c +++ b/commands/iomem.c @@ -43,7 +43,7 @@ static void print_resources(struct resource *res) __print_resources(res, 0); } -static int do_iomem(struct command *cmdtp, int argc, char *argv[]) +static int do_iomem(int argc, char *argv[]) { print_resources(&iomem_resource); diff --git a/commands/led.c b/commands/led.c index 7fd9d44677..14fb2aa356 100644 --- a/commands/led.c +++ b/commands/led.c @@ -28,7 +28,7 @@ #include #include -static int do_led(struct command *cmdtp, int argc, char *argv[]) +static int do_led(int argc, char *argv[]) { unsigned long value; struct led *led; diff --git a/commands/linux16.c b/commands/linux16.c index 8a1b5fed75..20413b6f0d 100644 --- a/commands/linux16.c +++ b/commands/linux16.c @@ -147,7 +147,6 @@ struct linux_kernel_header { /** * Load an x86 Linux kernel bzImage and start it - * @param cmdtp FIXME * @param argc parameter count * @param argv list of parameter * @@ -155,7 +154,7 @@ struct linux_kernel_header { * (setup = 'real mode code' and kernel = 'protected mode code') to their * default locations, switches back to real mode and runs the setup code. */ -static int do_linux16(struct command *cmdtp, int argc, char *argv[]) +static int do_linux16(int argc, char *argv[]) { struct linux_kernel_header *lh = NULL; int rc, opt; diff --git a/commands/linux_exec.c b/commands/linux_exec.c index 00c7e8007a..201d7a1a8b 100644 --- a/commands/linux_exec.c +++ b/commands/linux_exec.c @@ -22,7 +22,7 @@ #include #include -static int do_linux_exec(struct command *cmdtp, int argc, char *argv[]) +static int do_linux_exec(int argc, char *argv[]) { int ret; char **newargv; diff --git a/commands/loadb.c b/commands/loadb.c index 439a83a45c..9a697dd6e6 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -686,7 +686,7 @@ static struct console_device *get_current_console(void) * * @return success or failure */ -static int do_load_serial_bin(struct command *cmdtp, int argc, char *argv[]) +static int do_load_serial_bin(int argc, char *argv[]) { ulong offset = 0; ulong addr; diff --git a/commands/loadenv.c b/commands/loadenv.c index 5568aced88..99ad542bc2 100644 --- a/commands/loadenv.c +++ b/commands/loadenv.c @@ -27,7 +27,7 @@ #include #include -static int do_loadenv(struct command *cmdtp, int argc, char *argv[]) +static int do_loadenv(int argc, char *argv[]) { char *filename, *dirname; diff --git a/commands/loads.c b/commands/loads.c index 68a44d40c2..1727be7275 100644 --- a/commands/loads.c +++ b/commands/loads.c @@ -40,7 +40,7 @@ static int save_serial(ulong offset, ulong size); static int write_record(char *buf); #endif /* CONFIG_CMD_SAVES */ -static int do_load_serial(struct command *cmdtp, int argc, char *argv[]) +static int do_load_serial(int argc, char *argv[]) { ulong offset = 0; ulong addr; @@ -175,7 +175,7 @@ static int read_record(char *buf, ulong len) } #ifdef CONFIG_CMD_SAVES -static int do_save_serial(struct command *cmdtp, int argc, char *argv[]) +static int do_save_serial(int argc, char *argv[]) { ulong offset = 0; ulong size = 0; diff --git a/commands/login.c b/commands/login.c index 3f6d3082ef..2f3d7668d5 100644 --- a/commands/login.c +++ b/commands/login.c @@ -33,7 +33,7 @@ #define LOGIN_MODE HIDE #endif -static int do_login(struct command *cmdtp, int argc, char *argv[]) +static int do_login(int argc, char *argv[]) { unsigned char passwd[PASSWD_MAX_LENGTH]; int passwd_len, opt; diff --git a/commands/ls.c b/commands/ls.c index 070aa9002b..c98d2dad57 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -111,7 +111,7 @@ out: return 0; } -static int do_ls(struct command *cmdtp, int argc, char *argv[]) +static int do_ls(int argc, char *argv[]) { int ret, opt, o; struct stat s; diff --git a/commands/lsmod.c b/commands/lsmod.c index 26d2fe4e34..f7da1d01ef 100644 --- a/commands/lsmod.c +++ b/commands/lsmod.c @@ -2,7 +2,7 @@ #include #include -static int do_lsmod(struct command *cmdtp, int argc, char *argv[]) +static int do_lsmod(int argc, char *argv[]) { struct module *mod; diff --git a/commands/magicvar.c b/commands/magicvar.c index 31606d2afa..b208d337dc 100644 --- a/commands/magicvar.c +++ b/commands/magicvar.c @@ -2,7 +2,7 @@ #include #include -static int do_magicvar(struct command *cmdtp, int argc, char *argv[]) +static int do_magicvar(int argc, char *argv[]) { struct magicvar *m; diff --git a/commands/mem.c b/commands/mem.c index 36495e1d66..d8e90e056f 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -161,7 +161,7 @@ static int mem_parse_options(int argc, char *argv[], char *optstr, int *mode, return 0; } -static int do_mem_md(struct command *cmdtp, int argc, char *argv[]) +static int do_mem_md(int argc, char *argv[]) { ulong start = 0, size = 0x100; int r, now; @@ -235,7 +235,7 @@ BAREBOX_CMD_START(md) BAREBOX_CMD_HELP(cmd_md_help) BAREBOX_CMD_END -static int do_mem_mw(struct command *cmdtp, int argc, char *argv[]) +static int do_mem_mw(int argc, char *argv[]) { int ret = 0; int fd; @@ -300,7 +300,7 @@ BAREBOX_CMD_START(mw) BAREBOX_CMD_HELP(cmd_mw_help) BAREBOX_CMD_END -static int do_mem_cmp(struct command *cmdtp, int argc, char *argv[]) +static int do_mem_cmp(int argc, char *argv[]) { ulong addr1, addr2, count = ~0; int mode = O_RWSIZE_1; @@ -409,7 +409,7 @@ BAREBOX_CMD_START(memcmp) BAREBOX_CMD_HELP(cmd_memcmp_help) BAREBOX_CMD_END -static int do_mem_cp(struct command *cmdtp, int argc, char *argv[]) +static int do_mem_cp(int argc, char *argv[]) { ulong count; ulong dest, src; @@ -516,7 +516,7 @@ BAREBOX_CMD_START(memcpy) BAREBOX_CMD_HELP(cmd_memcpy_help) BAREBOX_CMD_END -static int do_memset(struct command *cmdtp, int argc, char *argv[]) +static int do_memset(int argc, char *argv[]) { ulong s, c, n; int fd; diff --git a/commands/meminfo.c b/commands/meminfo.c index abbaf9c0d7..b41274439d 100644 --- a/commands/meminfo.c +++ b/commands/meminfo.c @@ -23,7 +23,7 @@ #include #include -static int do_meminfo(struct command *cmdtp, int argc, char *argv[]) +static int do_meminfo(int argc, char *argv[]) { malloc_stats(); diff --git a/commands/memtest.c b/commands/memtest.c index d9c8b3d89e..651a195a05 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(struct command *cmdtp, int argc, char *argv[]) +static int do_mem_mtest(int argc, char *argv[]) { ulong start, end, pattern = 0; diff --git a/commands/menu.c b/commands/menu.c index c3e090170a..e5ce5a9aae 100644 --- a/commands/menu.c +++ b/commands/menu.c @@ -306,7 +306,7 @@ static int do_menu_entry(struct cmd_menu *cm) } #endif -static int do_menu(struct command *cmdtp, int argc, char *argv[]) +static int do_menu(int argc, char *argv[]) { struct cmd_menu cm; int opt; diff --git a/commands/mkdir.c b/commands/mkdir.c index 45e7408cb6..65013699ed 100644 --- a/commands/mkdir.c +++ b/commands/mkdir.c @@ -26,7 +26,7 @@ #include #include -static int do_mkdir(struct command *cmdtp, int argc, char *argv[]) +static int do_mkdir(int argc, char *argv[]) { int opt, parent = 0, ret; diff --git a/commands/mount.c b/commands/mount.c index 926cd3fbf9..dd1ae6305d 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -30,7 +30,7 @@ #include #include -static int do_mount(struct command *cmdtp, int argc, char *argv[]) +static int do_mount(int argc, char *argv[]) { int ret = 0; struct mtab_entry *entry; diff --git a/commands/nand.c b/commands/nand.c index 88f242df0f..34aa07ba1d 100644 --- a/commands/nand.c +++ b/commands/nand.c @@ -36,7 +36,7 @@ #define NAND_DEL (1 << 1) #define NAND_MARKBAD (1 << 2) -static int do_nand(struct command *cmdtp, int argc, char *argv[]) +static int do_nand(int argc, char *argv[]) { int opt; int command = 0, badblock = 0; diff --git a/commands/nandtest.c b/commands/nandtest.c index 9f41ae2fad..d923e42f88 100644 --- a/commands/nandtest.c +++ b/commands/nandtest.c @@ -186,7 +186,7 @@ static void print_stats(int nr_passes, int length) } /* Main program. */ -static int do_nandtest(struct command *cmdtp, int argc, char *argv[]) +static int do_nandtest(int argc, char *argv[]) { int opt, length = -1, do_nandtest_dev = -1; off_t flash_offset = 0; diff --git a/commands/net.c b/commands/net.c index 938463c7c4..c5c6373dd3 100644 --- a/commands/net.c +++ b/commands/net.c @@ -38,7 +38,7 @@ #ifdef CONFIG_NET_RARP extern void RarpRequest(void); -static int do_rarpb(struct command *cmdtp, int argc, char *argv[]) +static int do_rarpb(int argc, char *argv[]) { int size; @@ -64,7 +64,7 @@ BAREBOX_CMD_START(rarpboot) BAREBOX_CMD_END #endif /* CONFIG_NET_RARP */ -static int do_ethact(struct command *cmdtp, int argc, char *argv[]) +static int do_ethact(int argc, char *argv[]) { struct eth_device *edev; diff --git a/commands/oftree.c b/commands/oftree.c index d8deb36edc..77afbc5a19 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -40,7 +40,7 @@ #include #include -static int do_oftree(struct command *cmdtp, int argc, char *argv[]) +static int do_oftree(int argc, char *argv[]) { struct fdt_header *fdt; int size; diff --git a/commands/partition.c b/commands/partition.c index db9b9fb0df..acd1609304 100644 --- a/commands/partition.c +++ b/commands/partition.c @@ -107,7 +107,7 @@ static int mtd_part_do_parse_one(char *devname, const char *partstr, return ret; } -static int do_addpart(struct command * cmdtp, int argc, char *argv[]) +static int do_addpart(int argc, char *argv[]) { char *devname; char *endp; @@ -174,7 +174,7 @@ BAREBOX_CMD_START(addpart) BAREBOX_CMD_HELP(cmd_addpart_help) BAREBOX_CMD_END -static int do_delpart(struct command * cmdtp, int argc, char *argv[]) +static int do_delpart(int argc, char *argv[]) { int i, err; diff --git a/commands/passwd.c b/commands/passwd.c index 9a0787372a..cdbcdf540f 100644 --- a/commands/passwd.c +++ b/commands/passwd.c @@ -33,7 +33,7 @@ #define PASSWD_MODE HIDE #endif -static int do_passwd(struct command *cmdtp, int argc, char *argv[]) +static int do_passwd(int argc, char *argv[]) { unsigned char passwd2[PASSWD_MAX_LENGTH]; unsigned char passwd1[PASSWD_MAX_LENGTH]; diff --git a/commands/printenv.c b/commands/printenv.c index 4078bbcc34..071a2d36de 100644 --- a/commands/printenv.c +++ b/commands/printenv.c @@ -28,7 +28,7 @@ #include #include -static int do_printenv(struct command *cmdtp, int argc, char *argv[]) +static int do_printenv(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 d51fa1a17b..4afe2d4a49 100644 --- a/commands/pwd.c +++ b/commands/pwd.c @@ -23,7 +23,7 @@ #include #include -static int do_pwd(struct command *cmdtp, int argc, char *argv[]) +static int do_pwd(int argc, char *argv[]) { printf("%s\n", getcwd()); return 0; diff --git a/commands/readline.c b/commands/readline.c index cf2625ff7f..d1ce7ea271 100644 --- a/commands/readline.c +++ b/commands/readline.c @@ -27,7 +27,7 @@ #include #include -static int do_readline(struct command *cmdtp, int argc, char *argv[]) +static int do_readline(int argc, char *argv[]) { char *buf = xzalloc(CONFIG_CBSIZE); diff --git a/commands/reginfo.c b/commands/reginfo.c index 90651d5a3a..009a065a2d 100644 --- a/commands/reginfo.c +++ b/commands/reginfo.c @@ -23,7 +23,7 @@ #include #include -static int do_reginfo(struct command *cmdtp, int argc, char *argv[]) +static int do_reginfo(int argc, char *argv[]) { reginfo(); return 0; diff --git a/commands/reset.c b/commands/reset.c index 46ab90153f..9f242d12c1 100644 --- a/commands/reset.c +++ b/commands/reset.c @@ -23,7 +23,7 @@ #include #include -static int cmd_reset(struct command *cmdtp, int argc, char *argv[]) +static int cmd_reset(int argc, char *argv[]) { reset_cpu(0); diff --git a/commands/rm.c b/commands/rm.c index 3437ae5784..ab8bca80cc 100644 --- a/commands/rm.c +++ b/commands/rm.c @@ -24,7 +24,7 @@ #include #include -static int do_rm(struct command *cmdtp, int argc, char *argv[]) +static int do_rm(int argc, char *argv[]) { int i = 1; diff --git a/commands/rmdir.c b/commands/rmdir.c index 83a0b027de..6034a10f7e 100644 --- a/commands/rmdir.c +++ b/commands/rmdir.c @@ -3,7 +3,7 @@ #include #include -static int do_rmdir(struct command *cmdtp, int argc, char *argv[]) +static int do_rmdir(int argc, char *argv[]) { int i = 1; diff --git a/commands/saveenv.c b/commands/saveenv.c index c63080b658..a4b279676d 100644 --- a/commands/saveenv.c +++ b/commands/saveenv.c @@ -30,7 +30,7 @@ #include #include -static int do_saveenv(struct command *cmdtp, int argc, char *argv[]) +static int do_saveenv(int argc, char *argv[]) { int ret, fd; char *filename, *dirname; diff --git a/commands/setenv.c b/commands/setenv.c index e39db20937..4bcdd51619 100644 --- a/commands/setenv.c +++ b/commands/setenv.c @@ -28,7 +28,7 @@ #include #include -static int do_setenv(struct command *cmdtp, int argc, char *argv[]) +static int do_setenv(int argc, char *argv[]) { if (argc < 2) return COMMAND_ERROR_USAGE; diff --git a/commands/sleep.c b/commands/sleep.c index 40a3a47ef9..f772e87a0d 100644 --- a/commands/sleep.c +++ b/commands/sleep.c @@ -24,7 +24,7 @@ #include #include -static int do_sleep(struct command *cmdtp, int argc, char *argv[]) +static int do_sleep(int argc, char *argv[]) { uint64_t start; ulong delay; diff --git a/commands/test.c b/commands/test.c index 4af35156ce..9ffa892524 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(struct command *cmdtp, int argc, char *argv[]) +static int do_test(int argc, char *argv[]) { char **ap; int left, adv, expr, last_expr, neg, last_cmp, opt, zero; diff --git a/commands/time.c b/commands/time.c index c2633bac77..987c25ef73 100644 --- a/commands/time.c +++ b/commands/time.c @@ -4,7 +4,7 @@ #include #include -static int do_time(struct command *cmdtp, int argc, char *argv[]) +static int do_time(int argc, char *argv[]) { int i; unsigned char *buf; diff --git a/commands/timeout.c b/commands/timeout.c index 5f2ab9a206..01ece52ac3 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(struct command *cmdtp, int argc, char *argv[]) +static int do_timeout(int argc, char *argv[]) { int timeout = 3, ret = 1; int flags = 0, opt, countdown; diff --git a/commands/trigger.c b/commands/trigger.c index 095f96d9f2..1d2dec146b 100644 --- a/commands/trigger.c +++ b/commands/trigger.c @@ -40,7 +40,7 @@ static char *trigger_names[] = { [LED_TRIGGER_NET_TXRX] = "net", }; -static int do_trigger(struct command *cmdtp, int argc, char *argv[]) +static int do_trigger(int argc, char *argv[]) { struct led *led; int i, opt, ret = 0; diff --git a/commands/true.c b/commands/true.c index 8c77dec26a..773ddef8a7 100644 --- a/commands/true.c +++ b/commands/true.c @@ -24,7 +24,7 @@ #include #include -static int do_true(struct command *cmdtp, int argc, char *argv[]) +static int do_true(int argc, char *argv[]) { return 0; } diff --git a/commands/ubi.c b/commands/ubi.c index 3da08350b9..bf700719b7 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -11,7 +11,7 @@ #include #include -static int do_ubimkvol(struct command *cmdtp, int argc, char *argv[]) +static int do_ubimkvol(int argc, char *argv[]) { struct ubi_mkvol_req req; int fd, ret; @@ -56,7 +56,7 @@ BAREBOX_CMD_START(ubimkvol) BAREBOX_CMD_END -static int do_ubiattach(struct command *cmdtp, int argc, char *argv[]) +static int do_ubiattach(int argc, char *argv[]) { struct mtd_info_user user; int fd, ret; @@ -92,7 +92,7 @@ BAREBOX_CMD_START(ubiattach) BAREBOX_CMD_HELP(cmd_ubiattach_help) BAREBOX_CMD_END -static int do_ubirmvol(struct command *cmdtp, int argc, char *argv[]) +static int do_ubirmvol(int argc, char *argv[]) { struct ubi_mkvol_req req; int fd, ret; diff --git a/commands/uimage.c b/commands/uimage.c index 82efd78349..345e49600c 100644 --- a/commands/uimage.c +++ b/commands/uimage.c @@ -19,7 +19,7 @@ static int uimage_flush(void *buf, unsigned int len) return ret; } -static int do_uimage(struct command *cmdtp, int argc, char *argv[]) +static int do_uimage(int argc, char *argv[]) { struct uimage_handle *handle; int ret; diff --git a/commands/umount.c b/commands/umount.c index 6ae5844112..9731cfc9d4 100644 --- a/commands/umount.c +++ b/commands/umount.c @@ -24,7 +24,7 @@ #include #include -static int do_umount(struct command *cmdtp, int argc, char *argv[]) +static int do_umount(int argc, char *argv[]) { int ret = 0; diff --git a/commands/uncompress.c b/commands/uncompress.c index fff62275bb..e96928b4c3 100644 --- a/commands/uncompress.c +++ b/commands/uncompress.c @@ -27,7 +27,7 @@ #include #include -static int do_uncompress(struct command *cmdtp, int argc, char *argv[]) +static int do_uncompress(int argc, char *argv[]) { int from, to, ret; diff --git a/commands/usb.c b/commands/usb.c index 0aac78ef09..6605e031a7 100644 --- a/commands/usb.c +++ b/commands/usb.c @@ -23,7 +23,7 @@ #include #include -static int do_usb(struct command *cmdtp, int argc, char *argv[]) +static int do_usb(int argc, char *argv[]) { usb_rescan(); diff --git a/commands/usbserial.c b/commands/usbserial.c index eb31934d76..380bee091a 100644 --- a/commands/usbserial.c +++ b/commands/usbserial.c @@ -30,7 +30,7 @@ #include #include -static int do_usbserial(struct command *cmdtp, int argc, char *argv[]) +static int do_usbserial(int argc, char *argv[]) { int opt; struct usb_serial_pdata pdata; diff --git a/commands/version.c b/commands/version.c index 2b3ac05c0c..8901faea68 100644 --- a/commands/version.c +++ b/commands/version.c @@ -24,7 +24,7 @@ #include #include -static int do_version(struct command *cmdtp, int argc, char *argv[]) +static int do_version(int argc, char *argv[]) { printf ("\n%s\n", version_string); return 0; -- cgit v1.2.3