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 d6baf6a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ pub type c_char = i8;
mod sys {
pub(super) use linux_raw_sys::io_uring::*;
#[cfg(test)]
pub(super) use {
crate::backend::c::{iovec, size_t},
linux_raw_sys::general::open_how,
};
pub(super) use {crate::backend::c::iovec, linux_raw_sys::general::open_how};
}

/// `io_uring_setup(entries, params)`—Setup a context for performing
Expand Down Expand Up @@ -1430,7 +1427,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 d6baf6a

Please sign in to comment.