From ee03c16e64c526041facc2edd4b7abf93f2d1022 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Fri, 22 Apr 2016 03:46:57 +0000 Subject: [PATCH] Use MIN() macro from sys/param.h. MFC after: 2 weeks. --- usr.bin/vmstat/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 03f4f964ebc0..0dbd2d165dda 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -884,7 +884,7 @@ printhdr(int maxid, u_long cpumask) { int i, num_shown; - num_shown = (num_selected < maxshowdevs) ? num_selected : maxshowdevs; + num_shown = MIN(num_selected, maxshowdevs); if (hflag) { xo_emit("{T:procs} {T:memory} {T:/page%*s}", 19, ""); } else {