summaryrefslogtreecommitdiff
path: root/usr.sbin/rwhod
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-30 08:45:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-30 08:45:04 +0000
commitc9807e011cad59ebf6bc2efbbcee191dfdfc56ee (patch)
treeff7ed4c486881b0529ab5d94795c84881e2356d9 /usr.sbin/rwhod
parentb4bdd3a3ece13c5c01c6f887bec1d5ac1c1882f9 (diff)
use inet_ntoa
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r--usr.sbin/rwhod/rwhod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c
index fab0144e5aa..c2c7edae792 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.9 1997/04/14 07:01:42 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rwhod.c,v 1.10 1998/04/30 08:45:03 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -196,8 +196,8 @@ main(argc, argv)
continue;
wd.wd_hostname[sizeof(wd.wd_hostname)-1] = '\0';
if (!verify(wd.wd_hostname)) {
- syslog(LOG_WARNING, "malformed host name from %x",
- from.sin_addr);
+ syslog(LOG_WARNING, "malformed host name from %s",
+ inet_ntoa(from.sin_addr));
continue;
}
(void) snprintf(path, sizeof path, "whod.%s", wd.wd_hostname);