summaryrefslogtreecommitdiffstats
path: root/libexec/rshd
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-02-14 17:42:58 +0000
committerstefanf <stefanf@FreeBSD.org>2005-02-14 17:42:58 +0000
commit03a2de3818d3547af96f80c072688c6fdd6c6fe1 (patch)
tree5a1a482690a82b5a762fe1b22f8d9ecebb0c7f70 /libexec/rshd
parent5c113e48aed10704fe27e0b338b08967972af1a5 (diff)
downloadFreeBSD-src-03a2de3818d3547af96f80c072688c6fdd6c6fe1.zip
FreeBSD-src-03a2de3818d3547af96f80c072688c6fdd6c6fe1.tar.gz
Fix most cases where the address of an int is passed to a function expecting a
socklen_t * argument.
Diffstat (limited to 'libexec/rshd')
-rw-r--r--libexec/rshd/rshd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index bf20936..ea85388 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -127,7 +127,8 @@ main(int argc, char *argv[])
{
extern int __check_rhosts_file;
struct linger linger;
- int ch, on = 1, fromlen;
+ socklen_t fromlen;
+ int ch, on = 1;
struct sockaddr_storage from;
openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
@@ -218,7 +219,7 @@ doit(struct sockaddr *fromp)
#ifdef IP_OPTIONS
if (af == AF_INET) {
u_char optbuf[BUFSIZ/3];
- int optsize = sizeof(optbuf), ipproto, i;
+ socklen_t optsize = sizeof(optbuf), ipproto, i;
struct protoent *ip;
if ((ip = getprotobyname("ip")) != NULL)
OpenPOWER on IntegriCloud