summaryrefslogtreecommitdiff
path: root/src/register.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-06-17 11:27:48 -0600
committerJens Axboe <axboe@kernel.dk>2019-06-17 11:27:48 -0600
commit9d9e3b87214ab7e70e7174299890c30ea3b24e28 (patch)
treea8f2da6b1b51fe88afe329f375ff0afc2d1705de /src/register.c
parent733223acd6540cc38d7e0b1235f74b42d643b138 (diff)
downloadliburing-9d9e3b87214ab7e70e7174299890c30ea3b24e28.tar.gz
liburing-9d9e3b87214ab7e70e7174299890c30ea3b24e28.tar.bz2
Make io_uring registration arguments const
We don't modify them, make that clear. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src/register.c')
-rw-r--r--src/register.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/register.c b/src/register.c
index e352291..b993fa9 100644
--- a/src/register.c
+++ b/src/register.c
@@ -9,7 +9,7 @@
#include "io_uring.h"
#include "liburing.h"
-int io_uring_register_buffers(struct io_uring *ring, struct iovec *iovecs,
+int io_uring_register_buffers(struct io_uring *ring, const struct iovec *iovecs,
unsigned nr_iovecs)
{
int ret;
@@ -34,7 +34,7 @@ int io_uring_unregister_buffers(struct io_uring *ring)
return 0;
}
-int io_uring_register_files(struct io_uring *ring, __s32 *files,
+int io_uring_register_files(struct io_uring *ring, const int *files,
unsigned nr_files)
{
int ret;