diff options
author | kan <kan@FreeBSD.org> | 2004-07-29 18:04:06 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-29 18:04:06 +0000 |
commit | ed22bf5a6696a8889c5b7ee026ae9173bec9482d (patch) | |
tree | d90723cd0b7ad09c09135a347cbf3016fe260af7 /sbin/ip6fw/ip6fw.c | |
parent | c1bceab802a20cb17b0942fdfee0724cf07b5ba5 (diff) | |
download | FreeBSD-src-ed22bf5a6696a8889c5b7ee026ae9173bec9482d.zip FreeBSD-src-ed22bf5a6696a8889c5b7ee026ae9173bec9482d.tar.gz |
Make lookup_host function invocation parameter match its prototype.
Diffstat (limited to 'sbin/ip6fw/ip6fw.c')
-rw-r--r-- | sbin/ip6fw/ip6fw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c index 6c80b08..9ceabbf 100644 --- a/sbin/ip6fw/ip6fw.c +++ b/sbin/ip6fw/ip6fw.c @@ -543,6 +543,7 @@ static int lookup_host (host, addr, family) char *host; u_char *addr; + int family; { struct hostent *he; @@ -574,7 +575,7 @@ fill_ip6(ipno, mask, acp, avp) *p++ = '\0'; } - if (lookup_host(*av, ipno, AF_INET6) != 0) + if (lookup_host(*av, (u_char *)ipno, AF_INET6) != 0) show_usage("hostname ``%s'' unknown", *av); switch (md) { case '/': |