summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-03-25 13:20:52 +0000
committerru <ru@FreeBSD.org>2008-03-25 13:20:52 +0000
commite9ab62a9ff9f3f66ab31bd1c0286c8539166b6a3 (patch)
treee8a94909d13cfca185c9e1530e30a3d5cba56e87 /sys/compat/linux
parentad5120d8795591a6f892e623f1353d204e5ac20f (diff)
downloadFreeBSD-src-e9ab62a9ff9f3f66ab31bd1c0286c8539166b6a3.zip
FreeBSD-src-e9ab62a9ff9f3f66ab31bd1c0286c8539166b6a3.tar.gz
Fix build.
Reported by: ache, tinderbox
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 1e12448..4d441de 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1750,7 +1750,7 @@ linux_sched_getaffinity(struct thread *td,
cga.which = CPU_WHICH_PID;
cga.id = args->pid;
cga.cpusetsize = sizeof(cpumask_t);
- cga.mask = (long *) args->user_mask_ptr;
+ cga.mask = (cpuset_t *) args->user_mask_ptr;
if ((error = cpuset_getaffinity(td, &cga)) == 0)
td->td_retval[0] = sizeof(cpumask_t);
@@ -1776,7 +1776,7 @@ linux_sched_setaffinity(struct thread *td,
csa.which = CPU_WHICH_PID;
csa.id = args->pid;
csa.cpusetsize = args->len;
- csa.mask = (long *) args->user_mask_ptr;
+ csa.mask = (cpuset_t *) args->user_mask_ptr;
return (cpuset_setaffinity(td, &csa));
}
OpenPOWER on IntegriCloud