Merge branch 'pthread-barrier-test-fix' into 'master'

widen unsafe block for pthread barrier test

See merge request redox-os/relibc!924
This commit is contained in:
Jeremy Soller
2026-01-28 15:20:13 -07:00
+3 -1
View File
@@ -80,7 +80,9 @@ pub unsafe extern "C" fn pthread_barrierattr_setpshared(
attr: *mut pthread_barrierattr_t,
pshared: c_int,
) -> c_int {
(unsafe { *attr.cast::<RlctBarrierAttr>() }).pshared = pshared;
unsafe {
(*attr.cast::<RlctBarrierAttr>()).pshared = pshared;
}
0
}