summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-27 16:01:51 +0000
committerattilio <attilio@FreeBSD.org>2011-05-27 16:01:51 +0000
commitcc1bd831c19be5a5a5ce6c3efef4c3874ddfabb0 (patch)
tree9a3e92f770249a891b68c43d5652f684da635d39 /gnu
parent9a75ededfbf8db715ecf5af60beb219e832c77da (diff)
downloadFreeBSD-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 '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 461f408..7b39929 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);
OpenPOWER on IntegriCloud