summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmccontrol
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-31 20:59:53 +0000
committerattilio <attilio@FreeBSD.org>2011-05-31 20:59:53 +0000
commit27825059cd2a1ad6c708ee2089f7e182c12e84b1 (patch)
tree06681751e5fd13fb55ccf18887a4b898bf4dcdb0 /usr.sbin/pmccontrol
parenta924571ff72281d66b56beff01ea2b9ed8de6961 (diff)
downloadFreeBSD-src-27825059cd2a1ad6c708ee2089f7e182c12e84b1.zip
FreeBSD-src-27825059cd2a1ad6c708ee2089f7e182c12e84b1.tar.gz
Revert r222363, as bde@ pointed out the initial solution was far more
correct.
Diffstat (limited to 'usr.sbin/pmccontrol')
-rw-r--r--usr.sbin/pmccontrol/pmccontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c
index 28f7ab4..80d4bd7 100644
--- a/usr.sbin/pmccontrol/pmccontrol.c
+++ b/usr.sbin/pmccontrol/pmccontrol.c
@@ -148,7 +148,7 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list)
/* Determine the set of active CPUs. */
cpusetsize = sysconf(_SC_CPUSET_SIZE);
- if (cpusetsize == -1 || (size_t)cpusetsize > sizeof(cpuset_t)) {
+ if (cpusetsize == -1 || (u_long)cpusetsize > sizeof(cpuset_t)) {
err(EX_OSERR, "ERROR: Cannot determine which CPUs are "
"halted");
}
OpenPOWER on IntegriCloud