summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/liburing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 8ca6cd9..b8bcdf5 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -340,7 +340,7 @@ static inline void io_uring_prep_read(struct io_uring_sqe *sqe, int fd,
}
static inline void io_uring_prep_write(struct io_uring_sqe *sqe, int fd,
- void *buf, unsigned nbytes, off_t offset)
+ const void *buf, unsigned nbytes, off_t offset)
{
io_uring_prep_rw(IORING_OP_WRITE, sqe, fd, buf, nbytes, offset);
}