Skip to content

Commit 2acd3b3

Browse files
committed
fix CPU_ISSET signature for freebsd/dragonflybsd.
indeed no rason to be mutable and to match linux part as well.
1 parent 1ac780a commit 2acd3b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ f! {
13351335
()
13361336
}
13371337

1338-
pub fn CPU_ISSET(cpu: usize, cpuset: &mut cpu_set_t) -> bool {
1338+
pub fn CPU_ISSET(cpu: usize, cpuset: &cpu_set_t) -> bool {
13391339
let (idx, offset) = ((cpu >> 6) & 3, cpu & 63);
13401340
0 != cpuset.ary[idx] & (1 << offset)
13411341
}

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ f! {
15281528
()
15291529
}
15301530

1531-
pub fn CPU_ISSET(cpu: usize, cpuset: &mut cpuset_t) -> bool {
1531+
pub fn CPU_ISSET(cpu: usize, cpuset: &cpuset_t) -> bool {
15321532
let bitset_bits = ::mem::size_of::<::c_long>();
15331533
let (idx, offset) = (cpu / bitset_bits, cpu % bitset_bits);
15341534
0 != cpuset.__bits[idx] & (1 << offset)

0 commit comments

Comments
 (0)