Author: araujo Date: Wed Apr 27 02:26:31 2016 New Revision: 298684 URL: https://svnweb.freebsd.org/changeset/base/298684
Log: Use macro MIN() from sys/param.h. MFC after: 2 weeks. Modified: head/usr.bin/systat/main.c Modified: head/usr.bin/systat/main.c ============================================================================== --- head/usr.bin/systat/main.c Wed Apr 27 02:25:21 2016 (r298683) +++ head/usr.bin/systat/main.c Wed Apr 27 02:26:31 2016 (r298684) @@ -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]); _______________________________________________ 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"