From c45f47820f8c14d492384fc6e14a69096e5045a5 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Fri, 12 Feb 2021 05:45:54 -0500 Subject: [PATCH] make buf_index u32 for prep_write_fixed This is u32 for prep_read_fixed. It is confusing to have differing types for both operations. Standardizing on u32 seems to match a trend towards uring deterministic size types for these operations. --- src/sqe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqe.rs b/src/sqe.rs index 7b6f70a..9f487f1 100644 --- a/src/sqe.rs +++ b/src/sqe.rs @@ -190,7 +190,7 @@ impl<'a> SQE<'a> { fd: impl UringFd, buf: &[u8], offset: u64, - buf_index: usize, + buf_index: u32, ) { let len = buf.len(); let addr = buf.as_ptr();