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 {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to