aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/svc_udp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-13 11:05:07 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-13 11:05:07 +0000
commit70b0abbaa2c30fb181d254f00b37cde027140878 (patch)
tree53bfb1977ba11eda0b64e027c32eb876a909ee8c /sunrpc/svc_udp.c
parent9fc19e48b594911f45a3df47218e47c42238ceb8 (diff)
downloadglibc-70b0abbaa2c30fb181d254f00b37cde027140878.zip
glibc-70b0abbaa2c30fb181d254f00b37cde027140878.tar.gz
glibc-70b0abbaa2c30fb181d254f00b37cde027140878.tar.bz2
Update.
1998-12-13 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sunrpc/svc_udp.c (svcudp_bufcreate): Declare len as socklen_t. (svcudp_recv): Likewise. 1998-12-13 Thorsten Kukuk <kukuk@vt.uni-paderborn.de> * nis/nss-nisplus.h: Change some mappings of NIS+ errors to NSS error codes to avoid endless loops. 1998-12-13 Ulrich Drepper <drepper@cygnus.com> * iconvdata/gconv-modules: Correct aliases for ISO-8859-13 and add aliases for ISO-8859-14.
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 4ea421a..3d95f4b 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;