We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a5b24 commit 6dbfabfCopy full SHA for 6dbfabf
src/sys/signal.rs
@@ -435,9 +435,9 @@ pub fn pthread_sigmask(how: SigmaskHow,
435
let res = unsafe {
436
// if set or oldset is None, pass in null pointers instead
437
libc::pthread_sigmask(how as libc::c_int,
438
- set.map_or_else(|| ptr::null::<libc::sigset_t>(),
+ set.map_or_else(ptr::null::<libc::sigset_t>,
439
|s| &s.sigset as *const libc::sigset_t),
440
- oldset.map_or_else(|| ptr::null_mut::<libc::sigset_t>(),
+ oldset.map_or_else(ptr::null_mut::<libc::sigset_t>,
441
|os| &mut os.sigset as *mut libc::sigset_t))
442
};
443
0 commit comments