diff options
Diffstat (limited to 'common/hwconfig.c')
-rw-r--r-- | common/hwconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hwconfig.c b/common/hwconfig.c index 4ae042ee33..85aaabbb85 100644 --- a/common/hwconfig.c +++ b/common/hwconfig.c @@ -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); |