aboutsummaryrefslogtreecommitdiff
path: root/src/libsunrpc
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
committerRuss Cox <rsc@swtch.com>2012-10-20 13:36:52 -0400
commit220c15d2b746878a943f311e6f66b1480e46491d (patch)
treeb3235ff00e75b08680c0db754058ec908e2b2f22 /src/libsunrpc
parent53527a6e7864f5d681d7140f1403d4d8d42311d5 (diff)
downloadplan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.gz
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.tar.bz2
plan9port-220c15d2b746878a943f311e6f66b1480e46491d.zip
fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc http://codereview.appspot.com/6744053
Diffstat (limited to 'src/libsunrpc')
-rw-r--r--src/libsunrpc/nfs3.c2
-rw-r--r--src/libsunrpc/udp.c2
2 files changed, 1 insertions, 3 deletions
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");