summaryrefslogtreecommitdiffstats
path: root/gnu
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 /gnu
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 'gnu')
-rw-r--r--gnu/usr.bin/gdb/kgdb/kthr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/kthr.c b/gnu/usr.bin/gdb/kgdb/kthr.c
index 7b39929..461f408 100644
--- a/gnu/usr.bin/gdb/kgdb/kthr.c
+++ b/gnu/usr.bin/gdb/kgdb/kthr.c
@@ -107,7 +107,7 @@ kgdb_thr_init(void)
addr = kgdb_lookup("stopped_cpus");
CPU_ZERO(&stopped_cpus);
cpusetsize = sysconf(_SC_CPUSET_SIZE);
- if (cpusetsize != -1 && (size_t)cpusetsize <= sizeof(cpuset_t) &&
+ if (cpusetsize != -1 && (u_long)cpusetsize <= sizeof(cpuset_t) &&
addr != 0)
kvm_read(kvm, addr, &stopped_cpus, cpusetsize);
OpenPOWER on IntegriCloud