summaryrefslogtreecommitdiff
path: root/src/include/liburing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/liburing.h')
-rw-r--r--src/include/liburing.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index c0d00a9..fce4fef 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -197,9 +197,8 @@ static inline void io_uring_prep_splice(struct io_uring_sqe *sqe,
unsigned int nbytes,
unsigned int splice_flags)
{
- io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out,
- (void *) (uintptr_t) off_in,
- nbytes, off_out);
+ io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out, NULL, nbytes, off_out);
+ sqe->splice_off_in = off_in;
sqe->splice_fd_in = fd_in;
sqe->splice_flags = splice_flags;
}