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/netinet/in_pcb.c | |
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/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 6db09f6..3f99451 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -459,8 +459,7 @@ in_pcbladdr(inp, nam, plocal_sin) imo = inp->inp_moptions; if (imo->imo_multicast_ifp != NULL) { ifp = imo->imo_multicast_ifp; - for (ia = TAILQ_FIRST(&in_ifaddrhead); ia; - ia = TAILQ_NEXT(ia, ia_link)) + TAILQ_FOREACH(ia, &in_ifaddrhead, ia_link) if (ia->ia_ifp == ifp) break; if (ia == 0) @@ -858,8 +857,7 @@ in_pcblookup_local(pcbinfo, laddr, lport_arg, wild_okay) * Port is in use by one or more PCBs. Look for best * fit. */ - for (inp = LIST_FIRST(&phd->phd_pcblist); inp != NULL; - inp = LIST_NEXT(inp, inp_portlist)) { + LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { wildcard = 0; #ifdef INET6 if ((inp->inp_vflag & INP_IPV4) == 0) |