diff options
author | phk <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
commit | 709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (patch) | |
tree | dfeb80ff1352759a12e59878a24ad037eef63ea0 /sys/netipx | |
parent | e01468552648a6fc51185ba9e47435b0d00ff96f (diff) | |
download | FreeBSD-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/netipx')
-rw-r--r-- | sys/netipx/ipx_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c index 840935a..ed78acf 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; |