Use TAILQ_FOREACH.

This commit is contained in:
Yaroslav Tykhiy 2006-06-29 17:31:43 +00:00
parent 5aa288f461
commit 06dc090fe0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160034

View File

@ -367,10 +367,7 @@ stf_getsrcifa6(ifp)
struct sockaddr_in6 *sin6;
struct in_addr in;
for (ia = TAILQ_FIRST(&ifp->if_addrlist);
ia;
ia = TAILQ_NEXT(ia, ifa_list))
{
TAILQ_FOREACH(ia, &ifp->if_addrlist, ifa_list) {
if (ia->ifa_addr == NULL)
continue;
if (ia->ifa_addr->sa_family != AF_INET6)