Skip to content
Snippets Groups Projects
Verified Commit 7524a83d authored by jD91mZM2's avatar jD91mZM2
Browse files

fixup! sigemptyset and sigaddset

parent 892ce75e
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,9 @@ pub unsafe extern "C" fn sigaction(sig: c_int, act: *const sigaction, oact: *mut ...@@ -66,7 +66,9 @@ pub unsafe extern "C" fn sigaction(sig: c_int, act: *const sigaction, oact: *mut
#[no_mangle] #[no_mangle]
pub extern "C" fn sigaddset(set: *mut sigset_t, mut signo: c_int) -> c_int { pub extern "C" fn sigaddset(set: *mut sigset_t, mut signo: c_int) -> c_int {
if signo <= 0 || signo as usize > NSIG { if signo <= 0 || signo as usize > NSIG {
platform::errno = errno::EINVAL; unsafe {
platform::errno = errno::EINVAL;
}
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment