[U-Boot-Users] [MIPS] gth2.c: Fix a warning on gth2 build.

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Sat Nov 17 12:42:45 CET 2007


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 <skuribay at ruby.dti.ne.jp>
---

 board/gth2/gth2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/gth2/gth2.c b/board/gth2/gth2.c
index 1593f02..6da80dc 100644
--- a/board/gth2/gth2.c
+++ b/board/gth2/gth2.c
@@ -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);
 }




More information about the U-Boot mailing list