Date: Fri, 22 Apr 2016 03:46:57 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298444 - head/usr.bin/vmstat Message-ID: <201604220346.u3M3kvbW058929@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Fri Apr 22 03:46:57 2016 New Revision: 298444 URL: https://svnweb.freebsd.org/changeset/base/298444 Log: Use MIN() macro from sys/param.h. MFC after: 2 weeks. Modified: head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/vmstat.c ============================================================================== --- head/usr.bin/vmstat/vmstat.c Fri Apr 22 03:43:06 2016 (r298443) +++ head/usr.bin/vmstat/vmstat.c Fri Apr 22 03:46:57 2016 (r298444) @@ -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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220346.u3M3kvbW058929>