summaryrefslogtreecommitdiff
path: root/libexec/rshd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:43:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:43:55 +0000
commitbe77049622266cc17c3bdcf5a5133d4d840c017e (patch)
tree961945ab4f9c5985e18ccf2b03d4c0e4187fce58 /libexec/rshd
parent11cebf79245d373cc7a70e7f78fff2b465e010f2 (diff)
use socklen_t more; henning ok
Diffstat (limited to 'libexec/rshd')
-rw-r--r--libexec/rshd/rshd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index 6f09dd9012c..0991eeccfac 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rshd.c,v 1.47 2002/07/03 23:27:19 deraadt Exp $ */
+/* $OpenBSD: rshd.c,v 1.48 2002/09/06 19:43:54 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1989, 1992, 1993, 1994
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */
-static char *rcsid = "$OpenBSD: rshd.c,v 1.47 2002/07/03 23:27:19 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rshd.c,v 1.48 2002/09/06 19:43:54 deraadt Exp $";
#endif /* not lint */
/*
@@ -123,7 +123,8 @@ main(int argc, char *argv[])
{
extern int __check_rhosts_file;
struct linger linger;
- int ch, on = 1, fromlen;
+ int ch, on = 1;
+ socklen_t fromlen;
struct sockaddr_storage from;
openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
@@ -283,7 +284,8 @@ doit(struct sockaddr *fromp)
#ifdef IP_OPTIONS
if (fromp->sa_family == AF_INET) {
struct ipoption opts;
- int optsize = sizeof(opts), ipproto, i;
+ socklen_t optsize = sizeof(opts);
+ int ipproto, i;
struct protoent *ip;
if ((ip = getprotobyname("ip")) != NULL)