sys_wait: drop unnecessary unsafe around Out::from_mut in waitid

This commit is contained in:
Red Bear OS
2026-07-16 22:08:17 +09:00
parent 3ed376e153
commit ab699eaa50
+1 -1
View File
@@ -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;