diff options
author | jhb <jhb@FreeBSD.org> | 2005-11-09 15:15:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-11-09 15:15:59 +0000 |
commit | e53f1ca06be3db76bd498563937bb0c904879f5a (patch) | |
tree | 21cea3227222aeee7b3d1af11f6d01b4db22dc0f /sys/kern | |
parent | d86b86314820730112b76b436b1405a1b7a5b76d (diff) | |
download | FreeBSD-src-e53f1ca06be3db76bd498563937bb0c904879f5a.zip FreeBSD-src-e53f1ca06be3db76bd498563937bb0c904879f5a.tar.gz |
Use intptr_t casts to convert void * <--> int to make 64-bit archs happy.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_power.c b/sys/kern/subr_power.c index f1485e6..a6eea85 100644 --- a/sys/kern/subr_power.c +++ b/sys/kern/subr_power.c @@ -42,7 +42,7 @@ static struct task power_pm_task; static void power_pm_deferred_fn(void *arg, int pending) { - int state = (int)arg; + int state = (intptr_t)arg; power_pm_fn(POWER_CMD_SUSPEND, power_pm_arg, state); } @@ -83,7 +83,7 @@ power_pm_suspend(int state) state != POWER_SLEEP_STATE_SUSPEND && state != POWER_SLEEP_STATE_HIBERNATE) return; - power_pm_task.ta_context = (void *)state; + power_pm_task.ta_context = (void *)(intptr_t)state; taskqueue_enqueue(taskqueue_swi, &power_pm_task); } |