fix gcc 4.7 warnings (thanks Tuncer Ayaz)

R=rsc
http://codereview.appspot.com/6744053
This commit is contained in:
Russ Cox 2012-10-20 13:36:52 -04:00
parent 53527a6e78
commit 220c15d2b7
14 changed files with 9 additions and 40 deletions

View file

@ -78,7 +78,7 @@ nfs3statusstr(Nfs3Status x)
}
static struct {
SunStatus status;
Nfs3Status status;
char *msg;
} etab[] = {
Nfs3ErrNotOwner, "not owner",

View file

@ -82,13 +82,11 @@ sunudpread(void *v)
static void
sunudpwrite(void *v)
{
uchar *buf;
Arg arg = *(Arg*)v;
SunMsgUdp *msg;
sendp(arg.csync, 0);
buf = emalloc(UdpMaxRead);
while((msg = recvp(arg.creply)) != nil){
if(udpwrite(arg.fd, &msg->udp, msg->msg.data, msg->msg.count) != msg->msg.count)
fprint(2, "udpwrite: %r\n");