All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [MIPS] gth2.c: Fix a warning on gth2 build.
@ 2007-11-17 11:42 Shinya Kuribayashi
  2007-11-18  0:22 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Shinya Kuribayashi @ 2007-11-17 11:42 UTC (permalink / raw)
  To: u-boot

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@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);
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-18  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-17 11:42 [U-Boot-Users] [MIPS] gth2.c: Fix a warning on gth2 build Shinya Kuribayashi
2007-11-18  0:22 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.