gth2.c: Fix a warning on gth2 build.
gth2.c: In function 'misc_init_r':
gth2.c:434: warning: pointer targets in passing argument 2 of 'setenv' differ in signedness
Signed-off-by Shinya Kuribayashi <[email protected]>
---
board/gth2/gth2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/gth2/gth2.c +1 -1
@@ -431,7 +431,7 @@ int misc_init_r(void){ (Rx[8] != ':') | (Rx[11] != ':') | (Rx[14] != ':')) { printf ("*** ethernet addr invalid, using default ***\n"); } else { -setenv ("ethaddr" , Rx); +setenv ("ethaddr" , (char *)Rx); }return (0 ); }
Wolfgang Denk
Appliedboard/gth2/gth2.c
Quoted 10 lines · In message <[email protected]> you wrote:
gth2.c: In function 'misc_init_r':
gth2.c:434: warning: pointer targets in passing argument 2 of 'setenv' differ in signednessSigned-off-by Shinya Kuribayashi <[email protected]>---
board/gth2/gth2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)board/gth2/gth2.c +0
-0
Applied. Thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de As a general rule, the freedom of any people can be judged by the volume of their laughter.