diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-02-20 09:20:15 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-02-20 09:20:15 -0700 |
commit | 0847b8aabd01510d9a0938f2fecc9fabbe3c9735 (patch) | |
tree | 57e0985f4dc00d87de05dcbf8a64d445f6935785 | |
parent | ff2ae9b368d1211d87b5d3631bc67af65468621a (diff) | |
parent | 2be0b94799c012a1215dbe05873587d2cfcdd096 (diff) | |
download | liburing-0847b8aabd01510d9a0938f2fecc9fabbe3c9735.tar.gz liburing-0847b8aabd01510d9a0938f2fecc9fabbe3c9735.tar.bz2 |
Merge branch 'dev' of https://github.com/CarterLi/liburing
* 'dev' of https://github.com/CarterLi/liburing:
liburing.h: add const type qualifier for io_uring_prep_write
-rw-r--r-- | src/include/liburing.h | 2 |
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); } |