diff options
Diffstat (limited to 'src/libsunrpc')
-rw-r--r-- | src/libsunrpc/nfs3.c | 2 | ||||
-rw-r--r-- | src/libsunrpc/udp.c | 2 |
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"); |