summary refs log tree commit diff
path: root/sunrpc/svc_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/svc_udp.c')
-rw-r--r--sunrpc/svc_udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sunrpc/svc_udp.c b/sunrpc/svc_udp.c
index 4ea421a7b2..3d95f4bc70 100644
--- a/sunrpc/svc_udp.c
+++ b/sunrpc/svc_udp.c
@@ -112,7 +112,7 @@ svcudp_bufcreate (sock, sendsz, recvsz)
   SVCXPRT *xprt;
   struct svcudp_data *su;
   struct sockaddr_in addr;
-  size_t len = sizeof (struct sockaddr_in);
+  socklen_t len = sizeof (struct sockaddr_in);
 
   if (sock == RPC_ANYSOCK)
     {
@@ -192,11 +192,11 @@ svcudp_recv (xprt, msg)
   int rlen;
   char *reply;
   u_long replylen;
-  size_t len;
+  socklen_t len;
 
 again:
   /* FIXME -- should xp_addrlen be a size_t?  */
-  len = sizeof(struct sockaddr_in);
+  len = (socklen_t) sizeof(struct sockaddr_in);
   rlen = recvfrom (xprt->xp_sock, rpc_buffer (xprt), (int) su->su_iosz, 0,
 		   (struct sockaddr *) &(xprt->xp_raddr), &len);
   xprt->xp_addrlen = len;