Use MIN() macro from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-22 03:46:57 +00:00
parent cadc2836d8
commit ee03c16e64

View File

@ -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 {