]> git.sur5r.net Git - u-boot/blobdiff - common/hwconfig.c
env: Rename setenv() to env_set()
[u-boot] / common / hwconfig.c
index 4ae042ee33efe9327b5a647af910f343cb6fe3e5..85aaabbb85529eb9413cc6548848e9f402eb0cfb 100644 (file)
@@ -243,7 +243,7 @@ int main()
        const char *ret;
        size_t len;
 
-       setenv("hwconfig", "key1:subkey1=value1,subkey2=value2;key2:value3;;;;"
+       env_set("hwconfig", "key1:subkey1=value1,subkey2=value2;key2:value3;;;;"
                           "key3;:,:=;key4", 1);
 
        ret = hwconfig_arg("key1", &len);
@@ -274,7 +274,7 @@ int main()
        assert(hwconfig_arg("key4", &len) == NULL);
        assert(hwconfig_arg("bogus", &len) == NULL);
 
-       unsetenv("hwconfig");
+       unenv_set("hwconfig");
 
        assert(hwconfig(NULL) == 0);
        assert(hwconfig("") == 0);