diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-17 19:09:37 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-17 19:09:37 +0000 |
commit | 8728eaba8fdf623ad4a0e57bddd7a3237166a42a (patch) | |
tree | 0c8b5fc3809a1a8c6c3ec8a4a41ff63b6b34f680 /usr.bin/netstat/ipx.c | |
parent | f7b490d28bfcd38c0a02589d91cb40c18ed67076 (diff) |
Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@
Diffstat (limited to 'usr.bin/netstat/ipx.c')
-rw-r--r-- | usr.bin/netstat/ipx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index ba581825278..6c5e1b57d06 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipx.c,v 1.17 2005/03/30 06:45:34 deraadt Exp $ */ +/* $OpenBSD: ipx.c,v 1.18 2005/10/17 19:09:36 otto Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)ns.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: ipx.c,v 1.17 2005/03/30 06:45:34 deraadt Exp $"; +static char *rcsid = "$OpenBSD: ipx.c,v 1.18 2005/10/17 19:09:36 otto Exp $"; #endif #endif /* not lint */ @@ -98,17 +98,17 @@ ipxprotopr(u_long off, char *name) isspx = strcmp(name, "spx") == 0; kread(off, &table, sizeof (table)); prev = head = (struct ipxpcb *) - &((struct ipxpcbtable *)off)->ipxpt_queue.cqh_first; - next = table.ipxpt_queue.cqh_first; + &CIRCLEQ_FIRST(&((struct ipxpcbtable *)off)->ipxpt_queue); + next = CIRCLEQ_FIRST(&table.ipxpt_queue); while (next != head) { kread((u_long)next, &ipxpcb, sizeof (ipxpcb)); - if (ipxpcb.ipxp_queue.cqe_prev != prev) { + if (CIRCLEQ_PREV(&ipxpcb, ipxp_queue) != prev) { printf("???\n"); break; } prev = next; - next = ipxpcb.ipxp_queue.cqe_next; + next = CIRCLEQ_NEXT(&ipxpcb, ipxp_queue); if (!aflag && ipx_nullhost(ipxpcb.ipxp_faddr) ) continue; |