diff options
author | yar <yar@FreeBSD.org> | 2006-06-29 17:09:47 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-06-29 17:09:47 +0000 |
commit | cd07978e9624075a03c40ec9a51b911d7ef4b8d5 (patch) | |
tree | be55c41e9dc8c7ccdedfec807751c9a0d28c3c00 /sys/netinet/ip_fw2.c | |
parent | 976c2bc37480e7a77799f507fe37595c4cde534f (diff) | |
download | FreeBSD-src-cd07978e9624075a03c40ec9a51b911d7ef4b8d5.zip FreeBSD-src-cd07978e9624075a03c40ec9a51b911d7ef4b8d5.tar.gz |
Use TAILQ_FOREACH consistently.
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r-- | sys/netinet/ip_fw2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index f9c72e5..5ad1eb6 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -574,8 +574,7 @@ search_ip6_addr_net (struct in6_addr * ip6_addr) struct in6_addr copia; TAILQ_FOREACH(mdc, &ifnet, if_link) - for (mdc2 = mdc->if_addrlist.tqh_first; mdc2; - mdc2 = mdc2->ifa_list.tqe_next) { + TAILQ_FOREACH(mdc2, &mdc->if_addrlist, ifa_list) { if (!mdc2->ifa_addr) continue; if (mdc2->ifa_addr->sa_family == AF_INET6) { |