Skip to content
Snippets Groups Projects
Commit 7e14fc65 authored by Shinya Kuribayashi's avatar Shinya Kuribayashi Committed by Wolfgang Denk
Browse files

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: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
parent 2309c130
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,7 @@ int misc_init_r(void){ ...@@ -431,7 +431,7 @@ int misc_init_r(void){
(Rx[8] != ':') | (Rx[11] != ':') | (Rx[14] != ':')) { (Rx[8] != ':') | (Rx[11] != ':') | (Rx[14] != ':')) {
printf ("*** ethernet addr invalid, using default ***\n"); printf ("*** ethernet addr invalid, using default ***\n");
} else { } else {
setenv ("ethaddr", Rx); setenv ("ethaddr", (char *)Rx);
} }
return (0); return (0);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment