summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_tcp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-09-06 18:35:12 +0000
committerderaadt <deraadt@openbsd.org>2002-09-06 18:35:12 +0000
commite62fa23158f9a28dfa69af8524e808a8b9ca30ea (patch)
treee6ac7812f4b168991e11aa6b8a1b15b6f97e6b69 /lib/libc/rpc/svc_tcp.c
parentundo signed vs unsigned confusion (diff)
downloadwireguard-openbsd-e62fa23158f9a28dfa69af8524e808a8b9ca30ea.tar.xz
wireguard-openbsd-e62fa23158f9a28dfa69af8524e808a8b9ca30ea.zip
use socklen_t where needed; henning pvalchev ok
Diffstat (limited to 'lib/libc/rpc/svc_tcp.c')
-rw-r--r--lib/libc/rpc/svc_tcp.c6
1 files changed, 3 insertions, 3 deletions
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: