From e54e7d6daebccef75827ff3ac4cbace310811323 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 29 Jun 2006 17:56:21 +0000 Subject: [PATCH] Use TAILQ_FOREACH in the __FreeBSD__ case, too. Funnily enough, rev. 1.15 changed the __Net and __Open cases only. --- sys/net/if_atmsubr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c index a0e84ea7981c..00f89d043fda 100644 --- a/sys/net/if_atmsubr.c +++ b/sys/net/if_atmsubr.c @@ -383,8 +383,7 @@ atm_ifattach(struct ifnet *ifp) #if defined(__NetBSD__) || defined(__OpenBSD__) TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) #elif defined(__FreeBSD__) && (__FreeBSD__ > 2) - for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa; - ifa = TAILQ_NEXT(ifa, ifa_link)) + TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) #elif defined(__FreeBSD__) || defined(__bsdi__) for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) #endif