From cc1bd831c19be5a5a5ce6c3efef4c3874ddfabb0 Mon Sep 17 00:00:00 2001 From: attilio Date: Fri, 27 May 2011 16:01:51 +0000 Subject: Style fix: cast to size_t rather than u_long when comparing to sizeof() rets. Requested by: kib --- lib/libmemstat/memstat_uma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libmemstat') 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); } -- cgit v1.1