Skip to contentSkip to conversation

gth2.c: Fix a warning on gth2 build.

U-Boot-Users Applied Shinya Kuribayashi 2 participants 2 messages Nov 17, 2007 – Nov 18, 2007

lore
Share & tools
lore
#0 lore raw

gth2.c: In function 'misc_init_r':
gth2.c:434: warning: pointer targets in passing argument 2 of 'setenv' differ in signedness

---

 board/gth2/gth2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/gth2/gth2.c +1 -1
index 1593f02..6da80dc 100644
@@ -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);
 }
#1 lore raw

board/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 signedness

---

 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.