aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx/ipx_input.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
commit37d400662666a604243e587c70d492fe357d150a (patch)
treef9bc9c6c4944d30981cf39fb66f61ea34fb86795 /sys/netipx/ipx_input.c
parentbcf77694d13313045a6a78477507a30ebd653894 (diff)
downloadsrc-37d400662666a604243e587c70d492fe357d150a.tar.gz
src-37d400662666a604243e587c70d492fe357d150a.zip
Another round of the <sys/queue.h> FOREACH transmogriffer.
Created with: sed(1) Reviewed by: md5(1)
Notes
Notes: svn path=/head/; revision=72012
Diffstat (limited to 'sys/netipx/ipx_input.c')
-rw-r--r--sys/netipx/ipx_input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index 840935aac42d..ed78acf62345 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -498,8 +498,7 @@ struct ifnet *ifp;
ia->ia_addr.sipx_addr.x_host;
if (ifp != NULL && (ifp->if_flags & IFF_POINTOPOINT))
- for(ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa != NULL;
- ifa = TAILQ_NEXT(ifa, ifa_link)) {
+ TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
if (ifa->ifa_addr->sa_family == AF_IPX) {
ipx->ipx_sna = IA_SIPX(ifa)->sipx_addr;
break;