diff options
author | 2002-07-18 08:46:18 +0000 | |
---|---|---|
committer | 2002-07-18 08:46:18 +0000 | |
commit | cc7a42e7107dfcd3f2614f975c37f2207ced0c9d (patch) | |
tree | 97ad6e4d44476d425bc50cc148b0dc7bf1ccf72e | |
parent | de-lint a bit. use inet_aton(); millert ok (diff) | |
download | wireguard-openbsd-cc7a42e7107dfcd3f2614f975c37f2207ced0c9d.tar.xz wireguard-openbsd-cc7a42e7107dfcd3f2614f975c37f2207ced0c9d.zip |
fix warning
-rw-r--r-- | sbin/mountd/mountd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index eb4fbbac2c6..334cc6f9422 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mountd.c,v 1.51 2002/07/18 08:41:05 deraadt Exp $ */ +/* $OpenBSD: mountd.c,v 1.52 2002/07/18 08:46:18 deraadt Exp $ */ /* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */ /* @@ -1396,7 +1396,7 @@ get_host(char *cp, struct grouplist *grp, struct grouplist *tgrp) if ((hp = gethostbyname(cp)) == NULL) { if (isdigit(*cp)) { if (inet_aton(cp, &saddr) == 0) { - syslog(LOG_ERR, "inet_addr failed for %s", cp); + syslog(LOG_ERR, "inet_aton failed for %s", cp); return (1); } if ((hp = gethostbyaddr((caddr_t)&saddr.s_addr, |