mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
cmd: binop: Use new environment api
Since the binop command was introduced, the environment API was changed. Use the new API to make the command work again. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
487bb2bc85
commit
29dada9c2e
|
@ -26,7 +26,7 @@ void write_to_env_var(char *varname, u8 *result, ulong len)
|
|||
str_ptr += 2;
|
||||
}
|
||||
*str_ptr = '\0';
|
||||
setenv(varname, str_output);
|
||||
env_set(varname, str_output);
|
||||
|
||||
free(str_output);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ void read_from_env_var(char *varname, u8 *result)
|
|||
{
|
||||
char *str_value;
|
||||
|
||||
str_value = getenv(varname);
|
||||
str_value = env_get(varname);
|
||||
if (str_value)
|
||||
decode_hexstring(str_value, result);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user