aboutsummaryrefslogtreecommitdiff
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-02-14 17:42:58 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-02-14 17:42:58 +0000
commit78e3eed07184d423cdabe6a8baae3edcd47c3dc5 (patch)
tree5a1a482690a82b5a762fe1b22f8d9ecebb0c7f70 /libexec/rlogind
parent6aac4c27da987ea7a85281142bf33cf2c5047134 (diff)
Notes
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 0a0d5a5c9717..86948f793f5d 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -140,7 +140,8 @@ main(int argc, char *argv[])
{
extern int __check_rhosts_file;
union sockunion from;
- int ch, fromlen, on;
+ socklen_t fromlen;
+ int ch, on;
openlog("rlogind", LOG_PID | LOG_CONS, LOG_AUTH);
@@ -242,7 +243,8 @@ doit(int f, union sockunion *fromp)
if (fromp->su_family == AF_INET)
{
u_char optbuf[BUFSIZ/3];
- int optsize = sizeof(optbuf), ipproto, i;
+ socklen_t optsize = sizeof(optbuf);
+ int ipproto, i;
struct protoent *ip;
if ((ip = getprotobyname("ip")) != NULL)