summaryrefslogtreecommitdiff
path: root/sys/net/if_atmsubr.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-12-09 13:09:14 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-12-09 13:09:14 +0000
commit14e9b0fdbfd4bca452c7e94137ddf40ec572b4c3 (patch)
tree99417d616ac3297980976257980f96f693517770 /sys/net/if_atmsubr.c
parentdcfe508c8abacb3ae0585db04662d330d31b2743 (diff)
Use queue.h TAILQ macros instead of accessing members directly.
(And convert a few loops to TAILQ_FOREACH).
Diffstat (limited to 'sys/net/if_atmsubr.c')
-rw-r--r--sys/net/if_atmsubr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c
index 10c13bbbb73..fa6bde0695b 100644
--- a/sys/net/if_atmsubr.c
+++ b/sys/net/if_atmsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atmsubr.c,v 1.16 2001/06/27 06:07:38 kjc Exp $ */
+/* $OpenBSD: if_atmsubr.c,v 1.17 2001/12/09 13:09:13 jason Exp $ */
/*
*
@@ -359,10 +359,9 @@ atm_ifattach(ifp)
ifp->if_output = atm_output;
#if defined(__NetBSD__) || defined(__OpenBSD__)
- for (ifa = ifp->if_addrlist.tqh_first; ifa != 0;
- ifa = ifa->ifa_list.tqe_next)
+ TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
#elif defined(__FreeBSD__) || defined(__bsdi__)
- for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next)
+ for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) {
#endif
if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
@@ -374,4 +373,5 @@ atm_ifattach(ifp)
#endif
break;
}
+ }
}