summaryrefslogtreecommitdiffstats
path: root/sys/net/if_atmsubr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
committerphk <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
commit709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (patch)
treedfeb80ff1352759a12e59878a24ad037eef63ea0 /sys/net/if_atmsubr.c
parente01468552648a6fc51185ba9e47435b0d00ff96f (diff)
downloadFreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.zip
FreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.tar.gz
Another round of the <sys/queue.h> FOREACH transmogriffer.
Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/net/if_atmsubr.c')
-rw-r--r--sys/net/if_atmsubr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c
index 423ceaa..5d085cf 100644
--- a/sys/net/if_atmsubr.c
+++ b/sys/net/if_atmsubr.c
@@ -313,8 +313,7 @@ atm_ifattach(ifp)
ifp->if_snd.ifq_maxlen = 50; /* dummy */
#if defined(__NetBSD__) || defined(__OpenBSD__)
- for (ifa = TAILQ_FIRST(&ifp->if_addrlist); ifa != 0;
- ifa = TAILQ_NEXT(ifa, ifa_list))
+ 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))
OpenPOWER on IntegriCloud