summaryrefslogtreecommitdiffstats
path: root/bin/ps/fmt.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-01-19 00:21:55 +0000
committerjhb <jhb@FreeBSD.org>2013-01-19 00:21:55 +0000
commitaf6f5a9a49588b666aad0f55b12889c28fd6ac6d (patch)
tree3807ba187cd6f0b81b951681a312f8ec5d5649bc /bin/ps/fmt.c
parent15e6f8c6a40013a2e0c15ff46849ef88e1529fcf (diff)
downloadFreeBSD-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/fmt.c')
-rw-r--r--bin/ps/fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 4d7b120..4db6b8d 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -123,7 +123,7 @@ fmt_argv(char **argv, char *cmd, char *thread, size_t maxlen)
if (cp == NULL)
errx(1, "malloc failed");
if (ap == NULL) {
- if (showthreads && thread != NULL) {
+ if (thread != NULL) {
asprintf(&ap, "%s/%s", cmd, thread);
sprintf(cp, "[%.*s]", (int)maxlen, ap);
free(ap);
OpenPOWER on IntegriCloud