diff options
author | attilio <attilio@FreeBSD.org> | 2011-05-31 20:59:53 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2011-05-31 20:59:53 +0000 |
commit | 27825059cd2a1ad6c708ee2089f7e182c12e84b1 (patch) | |
tree | 06681751e5fd13fb55ccf18887a4b898bf4dcdb0 /lib/libkvm | |
parent | a924571ff72281d66b56beff01ea2b9ed8de6961 (diff) | |
download | FreeBSD-src-27825059cd2a1ad6c708ee2089f7e182c12e84b1.zip FreeBSD-src-27825059cd2a1ad6c708ee2089f7e182c12e84b1.tar.gz |
Revert r222363, as bde@ pointed out the initial solution was far more
correct.
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_pcpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_pcpu.c b/lib/libkvm/kvm_pcpu.c index 7e421ae..bc73baf 100644 --- a/lib/libkvm/kvm_pcpu.c +++ b/lib/libkvm/kvm_pcpu.c @@ -131,7 +131,7 @@ kvm_getpcpu(kvm_t *kd, int cpu) } kcpusetsize = sysconf(_SC_CPUSET_SIZE); - if (kcpusetsize == -1 || (size_t)kcpusetsize > sizeof(cpuset_t)) + if (kcpusetsize == -1 || (u_long)kcpusetsize > sizeof(cpuset_t)) return ((void *)-1); if (maxcpu == 0) |