]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
do_bootd: unify duplicate prototypes
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Oct 2010 07:36:26 +0000 (03:36 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 28 Nov 2010 20:46:47 +0000 (21:46 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/hush.c
common/main.c
include/command.h

index 2188fd4ac8dd23b57f719c48d95918751cf5fa2f..0f101bff1cefdbfefe8c7f8cfe88cda772625384 100644 (file)
@@ -93,8 +93,6 @@
 #include <common.h>        /* readline */
 #include <hush.h>
 #include <command.h>        /* find_cmd */
-/*cmd_boot.c*/
-extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);      /* do_bootd */
 #endif
 #ifndef __U_BOOT__
 #include <ctype.h>     /* isalpha, isdigit */
@@ -1681,8 +1679,6 @@ static int run_pipe_real(struct pipe *pi)
                        } else {
                                int rcode;
 #if defined(CONFIG_CMD_BOOTD)
-           extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-
                                /* avoid "bootd" recursion */
                                if (cmdtp->cmd == do_bootd) {
                                        if (flag & CMD_FLAG_BOOTD) {
index d97ccd7dd846185650ea632f7844b450e74a1b23..bbb208b927cb2a15abb364fe7b3eaa13082d37c5 100644 (file)
@@ -54,8 +54,6 @@ void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progre
 extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);               /* for do_reset() prototype */
 #endif
 
-extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-
 #if defined(CONFIG_UPDATE_TFTP)
 void update_tftp (void);
 #endif /* CONFIG_UPDATE_TFTP */
index 915be579879243b79483f615694770031f0104ff..e98332e121ae52eb3cc337b67e126eccfd1692f7 100644 (file)
@@ -95,6 +95,9 @@ extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *
 extern int cmd_get_data_size(char* arg, int default_size);
 #endif
 
+#ifdef CONFIG_CMD_BOOTD
+extern int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+#endif
 extern int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
 
 #endif /* __ASSEMBLY__ */