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 --- usr.sbin/pmccontrol/pmccontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pmccontrol') diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index 80d4bd7..28f7ab4 100644 --- a/usr.sbin/pmccontrol/pmccontrol.c +++ b/usr.sbin/pmccontrol/pmccontrol.c @@ -148,7 +148,7 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list) /* Determine the set of active CPUs. */ cpusetsize = sysconf(_SC_CPUSET_SIZE); - if (cpusetsize == -1 || (u_long)cpusetsize > sizeof(cpuset_t)) { + if (cpusetsize == -1 || (size_t)cpusetsize > sizeof(cpuset_t)) { err(EX_OSERR, "ERROR: Cannot determine which CPUs are " "halted"); } -- cgit v1.1