]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cli.c
common: do not compile common fastboot code when building the SPL
[people/ms/u-boot.git] / common / cli.c
index a433ef21663cfb112cb6acd40e38057f22acab1e..57874d87977b7263c773bc41467922eda2ebee52 100644 (file)
@@ -129,7 +129,7 @@ int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        for (i = 1; i < argc; ++i) {
                char *arg;
 
-               arg = getenv(argv[i]);
+               arg = env_get(argv[i]);
                if (arg == NULL) {
                        printf("## Error: \"%s\" not defined\n", argv[i]);
                        return 1;