summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarter Li <carter.li@eoitek.com>2020-02-20 21:11:19 +0800
committerCarter Li <carter.li@eoitek.com>2020-02-20 21:11:35 +0800
commit2be0b94799c012a1215dbe05873587d2cfcdd096 (patch)
treefad0b6a47375e0b175f2f0e1c93feffb97b44866
parent8304a49e7b9b47f2bebb8db4cf94f18a3ff2dacd (diff)
downloadliburing-2be0b94799c012a1215dbe05873587d2cfcdd096.tar.gz
liburing-2be0b94799c012a1215dbe05873587d2cfcdd096.tar.bz2
liburing.h: add const type qualifier
for io_uring_prep_write Signed-off-by: Carter Li <carter.li@eoitek.com>
-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);
}