summaryrefslogtreecommitdiff
path: root/src/sched.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sched.rs')
-rw-r--r--src/sched.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sched.rs b/src/sched.rs
index 0b98c580..9543e50d 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -96,7 +96,7 @@ pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> {
let res = unsafe {
libc::sched_setaffinity(pid.into(),
mem::size_of::<CpuSet>() as libc::size_t,
- mem::transmute(cpuset))
+ &cpuset.cpu_set)
};
Errno::result(res).map(drop)