diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/io_uring-cp.c | 4 | ||||
-rw-r--r-- | test/io_uring-test.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/io_uring-cp.c b/test/io_uring-cp.c index ce624c5..5f928c0 100644 --- a/test/io_uring-cp.c +++ b/test/io_uring-cp.c @@ -73,7 +73,7 @@ static int queue_read(int fd, off_t size, off_t offset) sqe->ioprio = 0; sqe->fd = fd; sqe->off = offset; - sqe->addr = data->iov; + sqe->addr = (unsigned long) data->iov; sqe->buf_index = 0; sqe->user_data = (unsigned long) data; iovecs[sqe_index(sqe)].iov_len = size; @@ -123,7 +123,7 @@ static void queue_write(int fd, struct io_uring_cqe *cqe) sqe->ioprio = 0; sqe->fd = fd; sqe->off = data->offset; - sqe->addr = data->iov; + sqe->addr = (unsigned long) data->iov; sqe->buf_index = 0; sqe->user_data = 0; data->iov->iov_len = cqe->res; diff --git a/test/io_uring-test.c b/test/io_uring-test.c index 42a8745..a8e8cdf 100644 --- a/test/io_uring-test.c +++ b/test/io_uring-test.c @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) sqe->ioprio = 0; sqe->fd = fd; sqe->off = offset; - sqe->addr = &iovecs[i]; + sqe->addr = (unsigned long) &iovecs[i]; sqe->len = 1; sqe->buf_index = 0; offset += iovecs[i].iov_len; |