if (*line) {
debug ("** exec: \"%s\"\n",
line);
- if (run_command (line, 0) < 0) {
+ if (run_command(line, 0) < 0) {
rcode = 1;
break;
}
/**************************************************/
#if defined(CONFIG_CMD_SOURCE)
int
-do_source (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_source (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
ulong addr;
int rcode;
"run script from memory",
"[addr]\n"
"\t- run script starting at addr\n"
- "\t- A valid image header must be present\n"
+ "\t- A valid image header must be present"
#if defined(CONFIG_FIT)
+ "\n"
"For FIT format uImage addr must include subimage\n"
- "unit name in the form of addr:<subimg_uname>\n"
+ "unit name in the form of addr:<subimg_uname>"
#endif
);
-
-/*
- * Keep for now for backward compatibility;
- * remove later when support for "autoscr" goes away.
- */
-static int
-do_autoscr (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-{
- printf ("\n### WARNING ### "
- "\"autoscr\" is deprecated, use \"source\" instead ###\n\n");
- return do_source (cmdtp, flag, argc, argv);
-}
-
-U_BOOT_CMD(
- autoscr, 2, 0, do_autoscr,
- "DEPRECATED - use \"source\" command instead",
- "DEPRECATED - use \"source\" command instead\n"
-);
#endif