summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-09-27 07:26:45 -0600
committerJens Axboe <axboe@kernel.dk>2019-09-27 08:32:50 -0600
commitac72640594bcb04b4952e7b2b83b06f2046afa8a (patch)
tree75268c17aef3179ed7e036d4b5f9df371fce1252 /test
parent1409c4a4d81e3a86fecbc42889541e866fc30abe (diff)
downloadliburing-ac72640594bcb04b4952e7b2b83b06f2046afa8a.tar.gz
liburing-ac72640594bcb04b4952e7b2b83b06f2046afa8a.tar.bz2
Fold io_uring_wait_cqes_timeout() with io_uring_wait_cqes()
We also need the sigset for certain setups, and adding a third option is pretty crazy. Since io_uring_wait_cqes_timeout() isn't in a released version yet (and neither is io_uring_wait_cqes()), make the necessary adjustments. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/timeout.c b/test/timeout.c
index 43b6732..4edc411 100644
--- a/test/timeout.c
+++ b/test/timeout.c
@@ -197,7 +197,7 @@ static int test_single_timeout_wait(struct io_uring *ring)
i = 0;
do {
- ret = io_uring_wait_cqes_timeout(ring, &cqe, 2, &ts);
+ ret = io_uring_wait_cqes(ring, &cqe, 2, &ts, NULL);
if (ret == -ETIME)
break;
if (ret < 0) {