diff options
author | jhb <jhb@FreeBSD.org> | 2013-01-19 00:21:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-01-19 00:21:55 +0000 |
commit | af6f5a9a49588b666aad0f55b12889c28fd6ac6d (patch) | |
tree | 3807ba187cd6f0b81b951681a312f8ec5d5649bc /bin/ps/ps.c | |
parent | 15e6f8c6a40013a2e0c15ff46849ef88e1529fcf (diff) | |
download | FreeBSD-src-af6f5a9a49588b666aad0f55b12889c28fd6ac6d.zip FreeBSD-src-af6f5a9a49588b666aad0f55b12889c28fd6ac6d.tar.gz |
- Move 'showthreads' check out of fmt.c.
- Update shadow copy of fmt_argv() prototype in w.c and fix calls for
additional parameter.
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r-- | bin/ps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 8a05ebc..7099cc0 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1168,7 +1168,7 @@ fmt(char **(*fn)(kvm_t *, const struct kinfo_proc *, int), KINFO *ki, const char *s; s = fmt_argv((*fn)(kd, ki->ki_p, termwidth), comm, - ki->ki_p->ki_numthreads > 1 ? thread : NULL, maxlen); + showthreads && ki->ki_p->ki_numthreads > 1 ? thread : NULL, maxlen); return (s); } |