summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/bindresvport.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/bindresvport.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/bindresvport.c')
-rw-r--r--lib/libc/rpc/bindresvport.c6
1 files changed, 3 insertions, 3 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)