board/[m-p]*: Remove obsolete references to CONFIG_COMMANDS
[oweals/u-boot.git] / board / hymod / env.c
index f58aec25709230209b6b291ed329f70adc229624..062553bfad087504856c92e86abaab6f33037a3c 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* imports from fetch.c */
 extern int fetch_and_parse (char *, ulong, int (*)(uchar *, uchar *));
 
@@ -32,13 +34,11 @@ static char *def_global_env_path = "/hymod/global_env";
 static int
 env_callback (uchar *name, uchar *value)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        hymod_conf_t *cp = &gd->bd->bi_hymod_conf;
        char ov[CFG_CBSIZE], nv[CFG_CBSIZE], *p, *q, *nn, c, *curver, *newver;
        int override = 1, append = 0, remove = 0, nnl, ovl, nvl;
 
-       nn = name;
+       nn = (char *)name;
 
        if (*nn == '-') {
                override = 0;
@@ -68,7 +68,7 @@ env_callback (uchar *name, uchar *value)
                return (0);
        }
 
-       p = value;
+       p = (char *)value;
        q = nv;
 
        while ((c = *p) == ' ' || c == '\t')