Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat Use PRIxPTR when printing a pointer.



details:   https://anonhg.NetBSD.org/src/rev/292cc04df468
branches:  trunk
changeset: 583564:292cc04df468
user:      elad <elad%NetBSD.org@localhost>
date:      Fri Aug 12 14:08:16 2005 +0000

description:
Use PRIxPTR when printing a pointer.

diffstat:

 usr.bin/netstat/inet.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 362de6c1d2eb -r 292cc04df468 usr.bin/netstat/inet.c
--- a/usr.bin/netstat/inet.c    Fri Aug 12 12:46:17 2005 +0000
+++ b/usr.bin/netstat/inet.c    Fri Aug 12 14:08:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet.c,v 1.67 2005/08/08 12:11:52 he Exp $     */
+/*     $NetBSD: inet.c,v 1.68 2005/08/12 14:08:16 elad Exp $   */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)inet.c       8.4 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: inet.c,v 1.67 2005/08/08 12:11:52 he Exp $");
+__RCSID("$NetBSD: inet.c,v 1.68 2005/08/12 14:08:16 elad Exp $");
 #endif
 #endif /* not lint */
 
@@ -132,7 +132,7 @@
        istcp = strcmp(name, "tcp") == 0;
 
        if (Aflag) {
-               printf("%8lx ", (u_long) ppcb);
+               printf("%8" PRIxPTR " ", ppcb);
        }
        printf("%-5.5s %6ld %6ld%s", name, rcv_sb_cc, snd_sb_cc,
               compact ? "" : " ");



Home | Main Index | Thread Index | Old Index