]> git.sur5r.net Git - u-boot/blobdiff - tools/env/fw_env.c
tools/env: allow equal sign as key value separation
[u-boot] / tools / env / fw_env.c
index 18c2324d2fca4d5ea6b61229c3bb09cc06b406ae..0e3e34321f6467b9889295aaf9b46b3bee158e57 100644 (file)
@@ -357,7 +357,7 @@ static int get_config (char *);
 static char *skip_chars(char *s)
 {
        for (; *s != '\0'; s++) {
-               if (isblank(*s))
+               if (isblank(*s) || *s == '=')
                        return s;
        }
        return NULL;
@@ -452,7 +452,7 @@ int fw_printenv(int argc, char *argv[], int value_only, struct env_opts *opts)
 
        if (value_only && argc != 1) {
                fprintf(stderr,
-                       "## Error: `-n' option requires exactly one argument\n");
+                       "## Error: `-n'/`--noheader' option requires exactly one argument\n");
                return -1;
        }
 
@@ -505,8 +505,6 @@ int fw_printenv(int argc, char *argv[], int value_only, struct env_opts *opts)
 
 int fw_env_flush(struct env_opts *opts)
 {
-       int ret;
-
        if (!opts)
                opts = &default_opts;