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 <[EMAIL PROTECTED]>

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)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to