There was an error while loading. Please reload this page.
1 parent efdcbae commit 1d8b10cCopy full SHA for 1d8b10c
1 file changed
ps4-1100/src/lib.rs
@@ -39,8 +39,8 @@ pub struct Kernel(*const u8);
39
impl okf::Kernel for Kernel {
40
#[offset(0x221CCF8)]
41
const ACCEPT_MTX: StaticMut<Self::Mtx>;
42
- const EINTR: NonZero<c_int> = unsafe { NonZero::new_unchecked(4) };
43
- const EIO: NonZero<c_int> = unsafe { NonZero::new_unchecked(5) };
+ const EINTR: NonZero<c_int> = NonZero::new(4).unwrap();
+ const EIO: NonZero<c_int> = NonZero::new(5).unwrap();
44
const LK_EXCLUSIVE: c_int = 0x80000;
45
const LK_SHARED: c_int = 0x200000;
46
const LOOKUP: u64 = 0;
0 commit comments