summaryrefslogtreecommitdiff
path: root/usr/src/lib/libfakekernel/common
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libfakekernel/common')
-rw-r--r--usr/src/lib/libfakekernel/common/callout.c2
-rw-r--r--usr/src/lib/libfakekernel/common/thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libfakekernel/common/callout.c b/usr/src/lib/libfakekernel/common/callout.c
index b2e5048bab..6752e2f44a 100644
--- a/usr/src/lib/libfakekernel/common/callout.c
+++ b/usr/src/lib/libfakekernel/common/callout.c
@@ -46,7 +46,7 @@ timeout(void (*func)(void *), void *arg, clock_t delta)
bzero(&sev, sizeof (sev));
sev.sigev_notify = SIGEV_THREAD;
sev.sigev_value.sival_ptr = arg;
- sev.sigev_notify_function = (sigev_notify_func_t)func;
+ sev.sigev_notify_function = (sigev_notify_func_t)(uintptr_t)func;
err = timer_create(CLOCK_REALTIME, &sev, &tid);
if (err != 0)
return (NULL);
diff --git a/usr/src/lib/libfakekernel/common/thread.c b/usr/src/lib/libfakekernel/common/thread.c
index 7cfac712a8..31421a723b 100644
--- a/usr/src/lib/libfakekernel/common/thread.c
+++ b/usr/src/lib/libfakekernel/common/thread.c
@@ -70,7 +70,7 @@ thread_create(
break;
}
- thr_func = (void *(*)(void *))func;
+ thr_func = (void *(*)(void *))(uintptr_t)func;
rc = thr_create(NULL, 0, thr_func, arg, thr_flags, &newtid);
if (rc != 0)
cmn_err(CE_PANIC, "thread_create failed, rc=%d", rc);