summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-08-04 20:45:10 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-08-04 20:45:10 +0000
commitef68052c976c827bdfedb0eefb04cce7a37af7a7 (patch)
tree3702f5359d96fb69bf30c9f35cd9b368aa604439
parent3c589466b373e3a1c5c93698fa1e46e5d4daa750 (diff)
use CIRCLEQ_XXX; ok mcbride, miod
-rw-r--r--sys/netinet/in_pcb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index bf95bfb8925..3e4b02c6480 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.78 2004/06/25 03:04:24 markus Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.79 2004/08/04 20:45:09 markus Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -656,8 +656,8 @@ in_pcbnotifyall(table, dst, errno, notify)
if (faddr.s_addr == INADDR_ANY)
return;
- for (inp = table->inpt_queue.cqh_first;
- inp != (struct inpcb *)&table->inpt_queue;) {
+ for (inp = CIRCLEQ_FIRST(&table->inpt_queue);
+ inp != CIRCLEQ_END(&table->inpt_queue);) {
#ifdef INET6
if (inp->inp_flags & INP_IPV6) {
inp = CIRCLEQ_NEXT(inp, inp_queue);
@@ -670,7 +670,7 @@ in_pcbnotifyall(table, dst, errno, notify)
continue;
}
oinp = inp;
- inp = inp->inp_queue.cqe_next;
+ inp = CIRCLEQ_NEXT(inp, inp_queue);
if (notify)
(*notify)(oinp, errno);
}