diff options
author | attilio <attilio@FreeBSD.org> | 2011-05-27 16:01:51 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2011-05-27 16:01:51 +0000 |
commit | cc1bd831c19be5a5a5ce6c3efef4c3874ddfabb0 (patch) | |
tree | 9a3e92f770249a891b68c43d5652f684da635d39 /usr.sbin/pmccontrol/pmccontrol.c | |
parent | 9a75ededfbf8db715ecf5af60beb219e832c77da (diff) | |
download | FreeBSD-src-cc1bd831c19be5a5a5ce6c3efef4c3874ddfabb0.zip FreeBSD-src-cc1bd831c19be5a5a5ce6c3efef4c3874ddfabb0.tar.gz |
Style fix: cast to size_t rather than u_long when comparing to sizeof()
rets.
Requested by: kib
Diffstat (limited to 'usr.sbin/pmccontrol/pmccontrol.c')
-rw-r--r-- | usr.sbin/pmccontrol/pmccontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index 80d4bd7..28f7ab4 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 || (u_long)cpusetsize > sizeof(cpuset_t)) { + if (cpusetsize == -1 || (size_t)cpusetsize > sizeof(cpuset_t)) { err(EX_OSERR, "ERROR: Cannot determine which CPUs are " "halted"); } |