diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2011-05-27 16:01:51 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2011-05-27 16:01:51 +0000 |
commit | d361ed4b1ca199522f067ecf7b9fd66d10642d1e (patch) | |
tree | 9a3e92f770249a891b68c43d5652f684da635d39 /usr.sbin/pmccontrol | |
parent | d5880f9cdfac5af5b1b92212097d71d3e0ddf459 (diff) | |
download | src-d361ed4b1ca199522f067ecf7b9fd66d10642d1e.tar.gz src-d361ed4b1ca199522f067ecf7b9fd66d10642d1e.zip |
Style fix: cast to size_t rather than u_long when comparing to sizeof()
rets.
Requested by: kib
Notes
Notes:
svn path=/projects/largeSMP/; revision=222363
Diffstat (limited to 'usr.sbin/pmccontrol')
-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 80d4bd7c3dde..28f7ab493363 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"); } |