summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-06-19 05:28:31 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-06-19 05:28:31 +0000
commitd235c2adc2184de3f1576655ec65d0c5de3aab44 (patch)
treeac55912e8b5b86a806986f32441d3b68d1616225 /usr.bin
parent75800966a6e20d196beeda9613225217b842906f (diff)
"off" isn't a pointer, it's a ulong. According to printf(3), %#lx
is equivalent to %p. OK markus and itojun
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 2740e11ad79..d22ee08ce9a 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.99 2005/10/17 19:09:36 otto Exp $ */
+/* $OpenBSD: inet.c,v 1.100 2007/06/19 05:28:30 ray Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-static const char *rcsid = "$OpenBSD: inet.c,v 1.99 2005/10/17 19:09:36 otto Exp $";
+static const char *rcsid = "$OpenBSD: inet.c,v 1.100 2007/06/19 05:28:30 ray Exp $";
#endif
#endif /* not lint */
@@ -1041,7 +1041,7 @@ tcp_dump(u_long off)
kread(off, (char *)&tcpcb, sizeof (tcpcb));
#define p(fmt, v, sep) printf(#v " " fmt sep, tcpcb.v);
- printf("pcb %p, ", off);
+ printf("pcb %#lx, ", off);
p("%p", t_inpcb, "\n");
p("%d", t_state, "");
if (tcpcb.t_state >= 0 && tcpcb.t_state < TCP_NSTATES)