From: Mario Six Date: Mon, 28 Jan 2019 08:43:42 +0000 (+0100) Subject: cmd: binop: Use new environment api X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=29dada9c2e1637aede9985ded2959342e2d4a458;p=u-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/cmd/binop.c b/cmd/binop.c index 787f7a26ea..be780bffd7 100644 --- a/cmd/binop.c +++ b/cmd/binop.c @@ -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