diff options
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/bindresvport.c | 6 | ||||
-rw-r--r-- | lib/libc/rpc/clnt_udp.c | 4 | ||||
-rw-r--r-- | lib/libc/rpc/pmap_rmt.c | 5 | ||||
-rw-r--r-- | lib/libc/rpc/svc_tcp.c | 6 | ||||
-rw-r--r-- | lib/libc/rpc/svc_udp.c | 4 |
5 files changed, 13 insertions, 12 deletions
diff --git a/lib/libc/rpc/bindresvport.c b/lib/libc/rpc/bindresvport.c index 02a8857af9c..53a1339206d 100644 --- a/lib/libc/rpc/bindresvport.c +++ b/lib/libc/rpc/bindresvport.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bindresvport.c,v 1.13 2000/01/26 03:43:21 deraadt Exp $"; +static char *rcsid = "$OpenBSD: bindresvport.c,v 1.14 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -68,7 +68,7 @@ bindresvport_sa(sd, sa) struct sockaddr_in6 *sin6; int proto, portrange, portlow; u_int16_t port; - int salen; + socklen_t salen; if (sa == NULL) { salen = sizeof(myaddr); @@ -104,7 +104,7 @@ bindresvport_sa(sd, sa) sa->sa_len = salen; if (port == 0) { - int oldlen = sizeof(old); + socklen_t oldlen = sizeof(old); error = getsockopt(sd, proto, portrange, &old, &oldlen); if (error < 0) diff --git a/lib/libc/rpc/clnt_udp.c b/lib/libc/rpc/clnt_udp.c index 5a5f9c3a038..782078d5aa8 100644 --- a/lib/libc/rpc/clnt_udp.c +++ b/lib/libc/rpc/clnt_udp.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: clnt_udp.c,v 1.18 2002/06/03 12:04:08 deraadt Exp $"; +static char *rcsid = "$OpenBSD: clnt_udp.c,v 1.19 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -220,7 +220,7 @@ clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout) XDR *xdrs; int outlen; int inlen; - int fromlen; + socklen_t fromlen; fd_set *fds, readfds; struct sockaddr_in from; struct rpc_msg reply_msg; diff --git a/lib/libc/rpc/pmap_rmt.c b/lib/libc/rpc/pmap_rmt.c index 0183696dd44..2e36d1263ea 100644 --- a/lib/libc/rpc/pmap_rmt.c +++ b/lib/libc/rpc/pmap_rmt.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: pmap_rmt.c,v 1.19 2001/09/15 13:51:01 deraadt Exp $"; +static char *rcsid = "$OpenBSD: pmap_rmt.c,v 1.20 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -229,7 +229,8 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult) AUTH *unix_auth = authunix_create_default(); XDR xdr_stream; XDR *xdrs = &xdr_stream; - int outlen, inlen, fromlen, nets; + int outlen, inlen, nets; + socklen_t fromlen; int sock = -1; int on = 1; fd_set *fds = NULL, readfds; diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c index ad27be3888c..9b6aca17a8d 100644 --- a/lib/libc/rpc/svc_tcp.c +++ b/lib/libc/rpc/svc_tcp.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: svc_tcp.c,v 1.21 2002/01/02 23:00:10 deraadt Exp $"; +static char *rcsid = "$OpenBSD: svc_tcp.c,v 1.22 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -133,7 +133,7 @@ svctcp_create(sock, sendsize, recvsize) SVCXPRT *xprt; struct tcp_rendezvous *r; struct sockaddr_in addr; - int len = sizeof(struct sockaddr_in); + socklen_t len = sizeof(struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { @@ -250,7 +250,7 @@ rendezvous_request(xprt) int sock; struct tcp_rendezvous *r; struct sockaddr_in addr; - int len; + socklen_t len; r = (struct tcp_rendezvous *)xprt->xp_p1; again: diff --git a/lib/libc/rpc/svc_udp.c b/lib/libc/rpc/svc_udp.c index bf456045543..3ba6d5d1544 100644 --- a/lib/libc/rpc/svc_udp.c +++ b/lib/libc/rpc/svc_udp.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: svc_udp.c,v 1.11 2002/02/16 21:27:24 millert Exp $"; +static char *rcsid = "$OpenBSD: svc_udp.c,v 1.12 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -103,7 +103,7 @@ svcudp_bufcreate(sock, sendsz, recvsz) SVCXPRT *xprt; struct svcudp_data *su; struct sockaddr_in addr; - int len = sizeof(struct sockaddr_in); + socklen_t len = sizeof(struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { |