powerd - Fixes for 64-bit
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 28 Jun 2010 21:43:11 +0000 (14:43 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 28 Jun 2010 21:43:11 +0000 (14:43 -0700)
* Make slen size_t for 64-bit compatibility.

usr.sbin/powerd/powerd.c

index aaec64c..b2ac9a8 100644 (file)
@@ -161,7 +161,7 @@ getcputime(void)
 {
        static struct kinfo_cputime ocpu_time[64];
        static struct kinfo_cputime ncpu_time[64];
-       int slen;
+       size_t slen;
        int ncpu;
        int cpu;
        uint64_t delta;