From: Shinya Kuribayashi Date: Sat, 17 Nov 2007 11:42:45 +0000 (+0900) Subject: gth2.c: Fix a warning on gth2 build. X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7e14fc65368cbd2861b1207453da55a4fc7b3f81;p=u-boot.git 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 --- diff --git a/board/gth2/gth2.c b/board/gth2/gth2.c index 1593f02109..6da80dc758 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); }