Skip to content

Commit

Permalink
Fix the type check for io_uring_ptr.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 10, 2023
1 parent 05ce9de commit e6806da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mod sys {
pub(super) use linux_raw_sys::io_uring::*;
#[cfg(test)]
pub(super) use {
crate::backend::c::{iovec, size_t},
crate::backend::c::iovec,
linux_raw_sys::general::open_how,
};
}
Expand Down Expand Up @@ -1430,7 +1430,7 @@ impl Default for register_or_sqe_op_or_sqe_flags_union {
fn io_uring_layouts() {
use sys as c;

check_renamed_type!(io_uring_ptr, size_t);
assert_eq_size!(io_uring_ptr, u64);

check_renamed_type!(off_or_addr2_union, io_uring_sqe__bindgen_ty_1);
check_renamed_type!(addr_or_splice_off_in_union, io_uring_sqe__bindgen_ty_2);
Expand Down

0 comments on commit e6806da

Please sign in to comment.