summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.c
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-27 21:59:54 +0000
committergad <gad@FreeBSD.org>2004-03-27 21:59:54 +0000
commitdb8a4ef7a95739a4ae7e66152121d3bf9cfd6b56 (patch)
treed164bf2dc39587f311f9d15eac13ed4578bf60be /bin/ps/ps.c
parent153d99ec1c0980bc5f9094a5448deda0da67f277 (diff)
downloadFreeBSD-src-db8a4ef7a95739a4ae7e66152121d3bf9cfd6b56.zip
FreeBSD-src-db8a4ef7a95739a4ae7e66152121d3bf9cfd6b56.tar.gz
Explicitly wrap two long-ish linesi of code, to make them easier to read.
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index a446a90..0ca01c6 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1019,9 +1019,11 @@ pscomp(const void *a, const void *b)
return (getpcpu((const KINFO *)b) - getpcpu((const KINFO *)a));
if (sortby == SORTMEM)
return (VSIZE((const KINFO *)b) - VSIZE((const KINFO *)a));
- i = (int)((const KINFO *)a)->ki_p->ki_tdev - (int)((const KINFO *)b)->ki_p->ki_tdev;
+ i = (int)((const KINFO *)a)->ki_p->ki_tdev -
+ (int)((const KINFO *)b)->ki_p->ki_tdev;
if (i == 0)
- i = ((const KINFO *)a)->ki_p->ki_pid - ((const KINFO *)b)->ki_p->ki_pid;
+ i = ((const KINFO *)a)->ki_p->ki_pid -
+ ((const KINFO *)b)->ki_p->ki_pid;
return (i);
}
OpenPOWER on IntegriCloud