summaryrefslogtreecommitdiff
path: root/src/sched.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-08-17 21:31:29 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-08-17 21:31:29 +0000
commite09225759e4118cd0fc7ba2f1cdd6e8d2e3a8742 (patch)
treede41045e952784777e9abef7f597db0b6ffd4db3 /src/sched.rs
parentc48d48b69efdebdd73cab30f42ff2ef337b3a414 (diff)
parent9c9af2c6638c9a2c91fb18ff3cb79c4bac626965 (diff)
downloadnix-e09225759e4118cd0fc7ba2f1cdd6e8d2e3a8742.zip
Merge #700
700: Get rid of a lot of transmutes r=asomers Most could be replaced by simple raw pointer casts (or even perfectly safe coercions!). cc #373
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)