summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-30 21:22:54 +0000
committerphk <phk@FreeBSD.org>2000-12-30 21:22:54 +0000
commit4ea1588b37cbd62c1c2af3dfbd4c731cde0ea954 (patch)
tree9ac39e772206422e253c9adf65e198f5b0082074 /usr.bin/netstat/unix.c
parent4cc97bc78a4b54701485e6d8ce445ad01c69e5b1 (diff)
downloadFreeBSD-src-4ea1588b37cbd62c1c2af3dfbd4c731cde0ea954.zip
FreeBSD-src-4ea1588b37cbd62c1c2af3dfbd4c731cde0ea954.tar.gz
Use macro API to <sys/queue.h>
Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: phk
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 345e28a..8941a26 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -152,7 +152,7 @@ unixdomainpr(xunp, so)
(long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc,
so->so_snd.sb_cc,
(long)unp->unp_vnode, (long)unp->unp_conn,
- (long)unp->unp_refs.lh_first, (long)unp->unp_reflink.le_next);
+ (long)LIST_FIRST(&unp->unp_refs), (long)LIST_NEXT(unp, unp_reflink));
if (sa)
printf(" %.*s",
(int)(sa->sun_len - offsetof(struct sockaddr_un, sun_path)),
OpenPOWER on IntegriCloud