fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc http://codereview.appspot.com/6744053
This commit is contained in:
parent
53527a6e78
commit
220c15d2b7
14 changed files with 9 additions and 40 deletions
|
|
@ -78,7 +78,7 @@ nfs3statusstr(Nfs3Status x)
|
|||
}
|
||||
|
||||
static struct {
|
||||
SunStatus status;
|
||||
Nfs3Status status;
|
||||
char *msg;
|
||||
} etab[] = {
|
||||
Nfs3ErrNotOwner, "not owner",
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue