fix type-punned pointer warnings from gcc

R=rsc
http://codereview.appspot.com/396042
This commit is contained in:
Russ Cox 2010-03-10 14:50:33 -08:00
parent 2fe14f1315
commit 0c9c620f39
11 changed files with 57 additions and 29 deletions

View file

@ -71,7 +71,7 @@ parseip(char *host, u32int *pip)
return -1;
break;
}
*pip = *(u32int*)addr;
memmove(pip, addr, 4);
return 0;
}