Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ps XXX: cast tdev to INT32 instead of UINT32 so that tha...
details: https://anonhg.NetBSD.org/src/rev/5944ef52db2d
branches: trunk
changeset: 544004:5944ef52db2d
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 08 06:46:22 2003 +0000
description:
XXX: cast tdev to INT32 instead of UINT32 so that that sorting works as
before [NODEV entries come first]
diffstat:
bin/ps/keyword.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 158ba02a3381 -r 5944ef52db2d bin/ps/keyword.c
--- a/bin/ps/keyword.c Sat Mar 08 05:18:25 2003 +0000
+++ b/bin/ps/keyword.c Sat Mar 08 06:46:22 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: keyword.c,v 1.32 2003/03/06 09:04:21 dsl Exp $ */
+/* $NetBSD: keyword.c,v 1.33 2003/03/08 06:46:22 christos Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)keyword.c 8.5 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: keyword.c,v 1.32 2003/03/06 09:04:21 dsl Exp $");
+__RCSID("$NetBSD: keyword.c,v 1.33 2003/03/08 06:46:22 christos Exp $");
#endif
#endif /* not lint */
@@ -179,7 +179,8 @@
{"svgroup", "SVGROUP", LJUST, svgname},
UID("svuid", "SVUID", p_svuid),
{"svuser", "SVUSER", LJUST, svuname},
- {"tdev", "TDEV", 0, tdev, POFF(p_tdev), UINT32},
+ /* tdev is UINT32, but we do this for sorting purposes */
+ {"tdev", "TDEV", 0, tdev, POFF(p_tdev), INT32},
{"time", "TIME", 0, cputime, 0, CPUTIME},
PID("tpgid", "TGPID", p_tpgid),
PVAR("tsess", "TSESS", 0, p_tsess, KPTR, PRIx64),
Home |
Main Index |
Thread Index |
Old Index