diff options
author | ume <ume@FreeBSD.org> | 2002-05-08 17:20:08 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-05-08 17:20:08 +0000 |
commit | f37958699205ff98449f3e2190be6f5499543446 (patch) | |
tree | ef38fd0d50e3ff25a2f0a768d101913ee0880170 /usr.sbin | |
parent | a4d79fec60a0ffa8a5b5c5ae679daf76aa89288d (diff) | |
download | FreeBSD-src-f37958699205ff98449f3e2190be6f5499543446.zip FreeBSD-src-f37958699205ff98449f3e2190be6f5499543446.tar.gz |
Make compilable without -DINET6.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 5d76b5a..57eae26 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -684,7 +684,7 @@ main(argc, argv) syslog(deny_severity, "refused connection from %.500s, service %s (%s%s)", eval_client(&req), service, sep->se_proto, - (req.client->sin->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : ""); + (((struct sockaddr *)req.client->sin)->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : ""); if (sep->se_socktype != SOCK_STREAM) recv(ctrl, buf, sizeof (buf), 0); if (dofork) { @@ -696,7 +696,7 @@ main(argc, argv) syslog(allow_severity, "connection from %.500s, service %s (%s%s)", eval_client(&req), service, sep->se_proto, - (req.client->sin->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : ""); + (((struct sockaddr *)req.client->sin)->sa_family == AF_INET6 && !IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)req.client->sin)->sin6_addr)) ? "6" : ""); } } if (sep->se_bi) { |