summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-04-22 18:07:33 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-04-22 18:07:33 +0000
commitde4f88638a6d112622c8defb369f29ecf139c928 (patch)
tree34f5d0dfbe577be5d843dd556b3bc3e0104ce3bf /usr.bin
parent7374b668df766652cc92e269f4b3744dd115144a (diff)
Expand SLIST macro of unix pcb members before printing the pointer.
Fixes a gcc warning. No binary change. Found by and OK deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index fbf98ca2eaa..c6776e5e7d6 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.26 2015/02/12 01:49:02 claudio Exp $ */
+/* $OpenBSD: unix.c,v 1.27 2015/04/22 18:07:32 bluhm Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -110,8 +110,8 @@ unpcb_dump(u_long off)
pp("%p", unp_vnode, ", ");
pull("%llu", unp_ino, "\n ");
pp("%p", unp_conn, ", ");
- pp("%p", unp_refs, ", ");
- pp("%p", unp_nextref, "\n ");
+ printf("unp_refs %p, ", SLIST_FIRST(&unp.unp_refs));
+ printf("unp_nextref %p\n ", SLIST_NEXT(&unp, unp_nextref));
pp("%p", unp_addr, "\n ");
p("%#.8x", unp_flags, "\n ");
p("%u", unp_connid.uid, ", ");