aboutsummaryrefslogtreecommitdiff
path: root/src/libsunrpc/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsunrpc/udp.c')
-rw-r--r--src/libsunrpc/udp.c2
1 files changed, 0 insertions, 2 deletions
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");