sys_wait: drop unnecessary unsafe around Out::from_mut in waitid
This commit is contained in:
@@ -171,7 +171,7 @@ pub unsafe extern "C" fn waitid(
|
||||
};
|
||||
|
||||
let mut status = 0;
|
||||
let pid = Sys::waitpid(pid_target, Some(unsafe { Out::from_mut(&mut status) }), waitpid_options)
|
||||
let pid = Sys::waitpid(pid_target, Some(Out::from_mut(&mut status)), waitpid_options)
|
||||
.or_minus_one_errno();
|
||||
if pid < 0 {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user