summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-31 23:48:42 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-31 23:48:42 +0000
commit66129ce62feb891eb530c44afcf5c6cd910b63ba (patch)
tree2cbc1070ac3bd6a9125bcd38c0f1425b8d74cc41 /usr.sbin
parent3bf3f327b9636a77c99320f0ae74f9f67516edd4 (diff)
cleanup socklen_t
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/inetd/inetd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 84c19637001..e529f901a71 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.95 2002/05/31 22:20:18 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.96 2002/05/31 23:48:41 itojun Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.95 2002/05/31 22:20:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.96 2002/05/31 23:48:41 itojun Exp $";
#endif /* not lint */
/*
@@ -527,7 +527,7 @@ gettcp(sep)
if ((sep->se_family == AF_INET || sep->se_family == AF_INET6) &&
sep->se_socktype == SOCK_STREAM) {
struct sockaddr_storage peer;
- int plen = sizeof(peer);
+ socklen_t plen = sizeof(peer);
char sbuf[NI_MAXSERV];
if (getpeername(ctrl, (struct sockaddr *)&peer, &plen) < 0) {
@@ -985,7 +985,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on))
r = bind(sep->se_fd, &sep->se_ctrladdr,
sep->se_ctrladdr_size);
if (r == 0) {
- int len = sep->se_ctrladdr_size;
+ socklen_t len = sep->se_ctrladdr_size;
int saveerrno = errno;
/* update se_ctrladdr_in.sin_port */
@@ -1025,7 +1025,7 @@ void
register_rpc(sep)
struct servtab *sep;
{
- int n;
+ socklen_t n;
struct sockaddr_in sin;
struct protoent *pp;