From: Shinya Kuribayashi Date: Sat, 17 Nov 2007 11:05:20 +0000 (+0900) Subject: [MIPS] gth2.c: Fix a warning on gth2 build. X-Git-Tag: v1.3.0~9^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5e429d3860bba4c6ae8bead8f78349fa24491b2;p=u-boot [MIPS] 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); }