summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-06-04 20:35:44 -0600
committerJens Axboe <axboe@kernel.dk>2019-06-04 20:35:44 -0600
commit9f44fb0e64e68c304d71c1cc21ddb1de7772c1c4 (patch)
treed77e6e9ec070f76b26d2766e6e8c6ff2e7ae82ac /test
parentb4b3d8c97b2de68e2bbac5f5a37988677c44302a (diff)
Add basic helpers for file/buffer registration
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/ring-leak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ring-leak.c b/test/ring-leak.c
index d2fcba0..99466e4 100644
--- a/test/ring-leak.c
+++ b/test/ring-leak.c
@@ -23,7 +23,7 @@
#include "../src/liburing.h"
-static int io_uring_register_files(int ring_fd, int fd1, int fd2)
+static int __io_uring_register_files(int ring_fd, int fd1, int fd2)
{
__s32 fds[2] = { fd1, fd2 };
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
if (ring_fd < 0)
return 1;
- ret = io_uring_register_files(ring_fd, sp[0], sp[1]);
+ ret = __io_uring_register_files(ring_fd, sp[0], sp[1]);
if (ret < 0) {
perror("register files");
return 1;