From e6806daf175d6a3742719c31bc582002fafd2b71 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 9 Oct 2023 20:17:09 -0700 Subject: [PATCH] Fix the type check for io_uring_ptr. --- src/io_uring.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io_uring.rs b/src/io_uring.rs index a4c28a487..d690cdb33 100644 --- a/src/io_uring.rs +++ b/src/io_uring.rs @@ -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, }; } @@ -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);