Source-Changes-HG archive

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

[src/trunk]: src/bin/ps KPTR/KPTR24 are using u_int64_t. commented by minoura



details:   https://anonhg.NetBSD.org/src/rev/6d9783feb358
branches:  trunk
changeset: 501902:6d9783feb358
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jan 09 01:21:59 2001 +0000

description:
KPTR/KPTR24 are using u_int64_t.  commented by minoura

diffstat:

 bin/ps/print.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 9dde6c5b1b31 -r 6d9783feb358 bin/ps/print.c
--- a/bin/ps/print.c    Tue Jan 09 00:47:18 2001 +0000
+++ b/bin/ps/print.c    Tue Jan 09 01:21:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.61 2001/01/08 18:03:45 itojun Exp $        */
+/*     $NetBSD: print.c,v 1.62 2001/01/09 01:21:59 itojun Exp $        */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.61 2001/01/08 18:03:45 itojun Exp $");
+__RCSID("$NetBSD: print.c,v 1.62 2001/01/09 01:21:59 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -930,11 +930,11 @@
                        vok = VUNSIGN;
                        break;
                case KPTR:
-                       uval = (unsigned long)GET(void *);
+                       uval = (unsigned long long)GET(u_int64_t);
                        vok = VPTR;
                        break;
                case KPTR24:
-                       uval = (unsigned long)GET(void *);
+                       uval = (unsigned long long)GET(u_int64_t);
                        uval &= 0xffffff;
                        vok = VPTR;
                        break;
@@ -1031,12 +1031,11 @@
                (void)printf(ofmt, width, CHK_INF127(GET(u_long)));
                return;
        case KPTR:
-               (void)printf(ofmt, width,
-                   (unsigned long long)(unsigned long)GET(void *));
+               (void)printf(ofmt, width, (unsigned long long)GET(u_int64_t));
                return;
        case KPTR24:
                (void)printf(ofmt, width,
-                   (unsigned long long)(unsigned long)GET(void *));
+                   (unsigned long long)GET(u_int64_t) & 0xffffff);
                return;
        case SIGLIST:
                {



Home | Main Index | Thread Index | Old Index