aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rwhod
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 /usr.sbin/rwhod
parent6aac4c27da987ea7a85281142bf33cf2c5047134 (diff)
downloadsrc-78e3eed07184d423cdabe6a8baae3edcd47c3dc5.tar.gz
src-78e3eed07184d423cdabe6a8baae3edcd47c3dc5.zip
Fix most cases where the address of an int is passed to a function expecting a
socklen_t * argument.
Notes
Notes: svn path=/head/; revision=141918
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r--usr.sbin/rwhod/rwhod.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c
index 09d5f8ae79d3..4dbd03958cd3 100644
--- a/usr.sbin/rwhod/rwhod.c
+++ b/usr.sbin/rwhod/rwhod.c
@@ -264,7 +264,8 @@ main(int argc, char *argv[])
}
for (;;) {
struct whod wd;
- int cc, whod, len = sizeof(from);
+ socklen_t len = sizeof(from);
+ int cc, whod;
time_t t;
cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0,