summaryrefslogtreecommitdiff
path: root/usr.sbin/rwhod
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
commit9b53e9ca8640f563833e342f07ff3f93b7547231 (patch)
treee11e35259d32805d4ed381b70e61d082e212608e /usr.sbin/rwhod
parent5efcea53a88b922145cd2461d78968fcf420274e (diff)
use more socklen_t; pvalchev
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r--usr.sbin/rwhod/rwhod.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c
index 04a7c1e8b7f..e61cb0d5af5 100644
--- a/usr.sbin/rwhod/rwhod.c
+++ b/usr.sbin/rwhod/rwhod.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: rwhod.c,v 1.24 2002/07/14 03:52:35 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rwhod.c,v 1.25 2002/09/06 19:46:52 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -237,7 +237,8 @@ handleread(int s)
struct stat st;
char path[64];
struct whod wd;
- int cc, whod, len = sizeof(from);
+ int cc, whod;
+ socklen_t len = sizeof(from);
cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0,
(struct sockaddr *)&from, &len);