diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2016-06-01 19:54:05 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2016-06-01 19:54:05 +0000 |
commit | 45ed6753449e3bfa06c55223733a6b79ca9e5bf9 (patch) | |
tree | dfc65054977135db49b7251c7254d31f1e829993 /bin/ps | |
parent | eaf7c645b3842eb53ac6d586f5ae19f8266128be (diff) | |
download | src-45ed6753449e3bfa06c55223733a6b79ca9e5bf9.tar.gz src-45ed6753449e3bfa06c55223733a6b79ca9e5bf9.zip |
ps(1): Expand variables to match expanded fields
ki_flag and ki_tdflag have been 'long', not 'int', since 2000 and 2005,
respectively.
Submitted by: Shawn Wills <swills at isilon dot com>
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=301160
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/keyword.c | 2 | ||||
-rw-r--r-- | bin/ps/print.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index b802c37143ea..2482490ebda8 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -95,7 +95,7 @@ static VAR var[] = { {"etimes", "ELAPSED", NULL, "elapsed-times", USER, elapseds, 0, CHAR, NULL, 0}, {"euid", "", "uid", NULL, 0, NULL, 0, CHAR, NULL, 0}, - {"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), INT, "x", 0}, + {"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), LONG, "lx", 0}, {"f2", "F2", NULL, "flags2", 0, kvar, KOFF(ki_flag2), INT, "08x", 0}, {"fib", "FIB", NULL, "fib", 0, kvar, KOFF(ki_fibnum), INT, "d", 0}, {"flags", "", "f", NULL, 0, NULL, 0, CHAR, NULL, 0}, diff --git a/bin/ps/print.c b/bin/ps/print.c index 91daa444e03f..1cbcf628d382 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -211,7 +211,7 @@ logname(KINFO *k, VARENT *ve __unused) char * state(KINFO *k, VARENT *ve __unused) { - int flag, tdflags; + long flag, tdflags; char *cp, *buf; buf = malloc(16); |