aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-03-16 20:00:53 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-03-16 20:00:53 +0000
commit462b86fe918bbabd1b722aea6b1397e6b9a2bd2b (patch)
tree9f546503129e75506f5c0be03015a51bbd0e7668 /sys/netinet/tcp_subr.c
parentccd6f42dc90c50d08d4461c340d145726e44326b (diff)
downloadsrc-462b86fe918bbabd1b722aea6b1397e6b9a2bd2b.tar.gz
src-462b86fe918bbabd1b722aea6b1397e6b9a2bd2b.zip
<sys/queue.h> makeover.
Notes
Notes: svn path=/head/; revision=74362
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index b70d2b5a8817..8f339e4487a0 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -733,18 +733,16 @@ tcp_drain()
* where we're really low on mbufs, this is potentially
* usefull.
*/
- for (inpb = LIST_FIRST(tcbinfo.listhead); inpb;
- inpb = LIST_NEXT(inpb, inp_list)) {
- if ((tcpb = intotcpcb(inpb))) {
- while ((te = LIST_FIRST(&tcpb->t_segq))
- != NULL) {
+ LIST_FOREACH(inpb, tcbinfo.listhead, inp_list) {
+ if ((tcpb = intotcpcb(inpb))) {
+ while ((te = LIST_FIRST(&tcpb->t_segq))
+ != NULL) {
LIST_REMOVE(te, tqe_q);
m_freem(te->tqe_m);
FREE(te, M_TSEGQ);
}
}
}
-
}
}