Date: Fri, 22 Apr 2016 05:07:59 +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: r298447 - head/usr.sbin/pmccontrol Message-ID: <201604220507.u3M57xlb082592@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Fri Apr 22 05:07:59 2016 New Revision: 298447 URL: https://svnweb.freebsd.org/changeset/base/298447 Log: Use macro MAX() from sys/param.h. MFC after: 2 weeks. Modified: head/usr.sbin/pmccontrol/pmccontrol.c Modified: head/usr.sbin/pmccontrol/pmccontrol.c ============================================================================== --- head/usr.sbin/pmccontrol/pmccontrol.c Fri Apr 22 05:01:43 2016 (r298446) +++ head/usr.sbin/pmccontrol/pmccontrol.c Fri Apr 22 05:07:59 2016 (r298447) @@ -141,7 +141,7 @@ pmcc_do_enable_disable(struct pmcc_op_li err(EX_OSERR, "Unable to determine the number of PMCs in CPU %d", c); - npmc = t > npmc ? t : npmc; + npmc = MAX(t, npmc); } if (npmc == 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220507.u3M57xlb082592>