From 220c15d2b746878a943f311e6f66b1480e46491d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 20 Oct 2012 13:36:52 -0400 Subject: fix gcc 4.7 warnings (thanks Tuncer Ayaz) R=rsc http://codereview.appspot.com/6744053 --- src/libsunrpc/nfs3.c | 2 +- src/libsunrpc/udp.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libsunrpc') diff --git a/src/libsunrpc/nfs3.c b/src/libsunrpc/nfs3.c index ff11b596..7a65b3a8 100644 --- a/src/libsunrpc/nfs3.c +++ b/src/libsunrpc/nfs3.c @@ -78,7 +78,7 @@ nfs3statusstr(Nfs3Status x) } static struct { - SunStatus status; + Nfs3Status status; char *msg; } etab[] = { Nfs3ErrNotOwner, "not owner", diff --git a/src/libsunrpc/udp.c b/src/libsunrpc/udp.c index 4a300030..48b6a2ca 100644 --- a/src/libsunrpc/udp.c +++ b/src/libsunrpc/udp.c @@ -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"); -- cgit v1.2.3