Re: [U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:05 AM Simon Glass  wrote:
>
> On Mon, 28 Jan 2019 at 01:44, Mario Six  wrote:
> >
> > 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 
> > ---
> >  cmd/binop.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
>
> Reviewed-by: Simon Glass 

Applied to u-boot-mpc83xx/next.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-01-31 Thread Simon Glass
On Mon, 28 Jan 2019 at 01:44, Mario Six  wrote:
>
> 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 
> ---
>  cmd/binop.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-01-28 Thread Mario Six
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 
---
 cmd/binop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/binop.c b/cmd/binop.c
index 787f7a26ead..be780bffd7b 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
-- 
2.20.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot