aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2011-05-27 16:01:51 +0000
committerAttilio Rao <attilio@FreeBSD.org>2011-05-27 16:01:51 +0000
commitd361ed4b1ca199522f067ecf7b9fd66d10642d1e (patch)
tree9a3e92f770249a891b68c43d5652f684da635d39 /gnu
parentd5880f9cdfac5af5b1b92212097d71d3e0ddf459 (diff)
downloadsrc-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 '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 461f408a73d9..7b39929fa55a 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 && (u_long)cpusetsize <= sizeof(cpuset_t) &&
+ if (cpusetsize != -1 && (size_t)cpusetsize <= sizeof(cpuset_t) &&
addr != 0)
kvm_read(kvm, addr, &stopped_cpus, cpusetsize);