summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat
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 /lib/libmemstat
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 'lib/libmemstat')
-rw-r--r--lib/libmemstat/memstat_uma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c
index 485a4f2..b9bde7d 100644
--- a/lib/libmemstat/memstat_uma.c
+++ b/lib/libmemstat/memstat_uma.c
@@ -341,7 +341,7 @@ memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle)
return (-1);
}
cpusetsize = sysconf(_SC_CPUSET_SIZE);
- if (cpusetsize == -1 || (u_long)cpusetsize > sizeof(cpuset_t)) {
+ if (cpusetsize == -1 || (size_t)cpusetsize > sizeof(cpuset_t)) {
list->mtl_error = MEMSTAT_ERROR_KVM_NOSYMBOL;
return (-1);
}
OpenPOWER on IntegriCloud