From ce3cb0e9dd4a56a5e9ab6ca5667d9930fa38a27f Mon Sep 17 00:00:00 2001 From: bluhm Date: Wed, 22 Apr 2015 18:07:32 +0000 Subject: [PATCH] Expand SLIST macro of unix pcb members before printing the pointer. Fixes a gcc warning. No binary change. Found by and OK deraadt@ --- usr.bin/netstat/unix.c | 6 +++--- 1 file 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, ", "); -- 2.20.1