XXX: cast tdev to INT32 instead of UINT32 so that that sorting works as

before [NODEV entries come first]
This commit is contained in:
christos 2003-03-08 06:46:22 +00:00
parent 67cca2386c
commit 5998d3b278
1 changed files with 4 additions and 3 deletions

View File

@ -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 @@ VAR var[] = {
{"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),