summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>1999-09-07 19:36:46 +0000
committerBrad Smith <brad@cvs.openbsd.org>1999-09-07 19:36:46 +0000
commitf6cd6520d044cceae323da9db3392c122b6143d0 (patch)
treefc33256d79f3824222712a62e47eb5bf2022c6db /sys/netinet6
parentc4f9760f3638f40b866b666bd010a42fc3a1f798 (diff)
silence -Wall
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ipv6_rtrequest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/ipv6_rtrequest.c b/sys/netinet6/ipv6_rtrequest.c
index 2f0ef99c668..08c1744df98 100644
--- a/sys/netinet6/ipv6_rtrequest.c
+++ b/sys/netinet6/ipv6_rtrequest.c
@@ -436,13 +436,14 @@ ipv6_setrtifa(rt)
#endif /* __FreeBSD__ */
if (ifa->ifa_addr->sa_family == AF_INET6 &&
!IS_DEPRECATED((struct in6_ifaddr *)ifa) &&
- !IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr))
+ !IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr)) {
if (IN6_IS_ADDR_V4COMPAT(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr))
ifa_compat = ifa;
else if (IN6_IS_ADDR_SITELOCAL(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr))
ifa_site = ifa;
else /* globally routable address */
break;
+ }
if (!ifa)
ifa = ifa_compat ? ifa_compat : ifa_site;
}