summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-27 02:26:31 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-27 02:26:31 +0000
commit5d5191795554149ec5e274e7898a19f7218cc6b7 (patch)
tree4d851cce75151e88e449bbc9a95e5396d39405d0 /usr.bin
parentc39e00777945d72dbcfc3501b46075b5456e8491 (diff)
downloadFreeBSD-src-5d5191795554149ec5e274e7898a19f7218cc6b7.zip
FreeBSD-src-5d5191795554149ec5e274e7898a19f7218cc6b7.tar.gz
Use macro MIN() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 5e509ca..4c55ff4 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -276,7 +276,7 @@ display(void)
c = '|';
dellave = avenrun[0];
wmove(wload, 0, 0); wclrtoeol(wload);
- for (i = (j > 50) ? 50 : j; i > 0; i--)
+ for (i = MIN(j, 50); i > 0; i--)
waddch(wload, c);
if (j > 50)
wprintw(wload, " %4.1f", avenrun[0]);
OpenPOWER on IntegriCloud