diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/io_uring-cp.c | 6 | ||||
-rw-r--r-- | examples/io_uring-test.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/io_uring-cp.c b/examples/io_uring-cp.c index f704ff6..1dd20fc 100644 --- a/examples/io_uring-cp.c +++ b/examples/io_uring-cp.c @@ -161,12 +161,12 @@ static int copy_file(struct io_uring *ring, off_t insize) struct io_data *data; if (!got_comp) { - ret = io_uring_wait_completion(ring, &cqe); + ret = io_uring_wait_cqe(ring, &cqe); got_comp = 1; } else - ret = io_uring_get_completion(ring, &cqe); + ret = io_uring_peek_cqe(ring, &cqe); if (ret < 0) { - fprintf(stderr, "io_uring_get_completion: %s\n", + fprintf(stderr, "io_uring_peek_cqe: %s\n", strerror(-ret)); return 1; } diff --git a/examples/io_uring-test.c b/examples/io_uring-test.c index fe0098c..bbac3a7 100644 --- a/examples/io_uring-test.c +++ b/examples/io_uring-test.c @@ -67,9 +67,9 @@ int main(int argc, char *argv[]) done = 0; pending = ret; for (i = 0; i < pending; i++) { - ret = io_uring_wait_completion(&ring, &cqe); + ret = io_uring_wait_cqe(&ring, &cqe); if (ret < 0) { - fprintf(stderr, "io_uring_get_completion: %s\n", strerror(-ret)); + fprintf(stderr, "io_uring_wait_cqe: %s\n", strerror(-ret)); return 1; } |