[U-Boot-Users] [Patch] U-Boot-V2: parser.c sparse cleanup
Menon, Nishanth
x0nishan at ti.com
Mon May 12 14:24:43 CEST 2008
This patch cleans up the parser error seen during simple parser compilation.
Please note that CFG_CMD_BOOTD is not defined at the moment, but leaving it for addition at a later point of time.
Signed-off-by: Nishanth Menon <x0nishan at ti.com>
Index: u-boot-v2.git/common/parser.c
===================================================================
--- u-boot-v2.git.orig/common/parser.c 2008-05-08 17:36:18.000000000 -0500
+++ u-boot-v2.git/common/parser.c 2008-05-08 17:43:27.000000000 -0500
@@ -2,7 +2,7 @@
#include <command.h>
#include <environment.h>
-int parse_line (char *line, char *argv[])
+static int parse_line (char *line, char *argv[])
{
int nargs = 0;
@@ -265,7 +265,7 @@
continue;
}
-#if (CONFIG_COMMANDS & CFG_CMD_BOOTD)
+#if defined(CONFIG_COMMANDS) & defined(CONFIG_CMD_BOOTD)
/* avoid "bootd" recursion */
if (cmdtp->cmd == do_bootd) {
#ifdef DEBUG_PARSER
@@ -279,7 +279,7 @@
flag |= CMD_FLAG_BOOTD;
}
}
-#endif /* CFG_CMD_BOOTD */
+#endif /* CONFIG_CMD_BOOTD */
/* OK - call function to do the command */
if ((cmdtp->cmd) (cmdtp, argc, argv) != 0)
More information about the U-Boot
mailing list