summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2019-01-28 09:43:42 +0100
committerMario Six <mario.six@gdsys.cc>2019-05-21 07:52:34 +0200
commit29dada9c2e1637aede9985ded2959342e2d4a458 (patch)
treef023bd0e9a6694484373ce1f79882443c2575480 /cmd
parent487bb2bc85a51ce14bb27c183c9ab51090b632d0 (diff)
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/binop.c4
1 files changed, 2 insertions, 2 deletions
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