diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-02-24 07:12:47 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-24 07:12:47 -0700 |
commit | d84d90108a1de9caf7636adcc523d451a56dd275 (patch) | |
tree | 117e67c2d75b314dcfdd37db8590302e2925099d /test/madvise.c | |
parent | b6dfe23e68bfa23e56a2a8798f9788708892abb2 (diff) | |
download | liburing-d84d90108a1de9caf7636adcc523d451a56dd275.tar.gz liburing-d84d90108a1de9caf7636adcc523d451a56dd275.tar.bz2 |
helpers: prefix any helper with t_ instead of io_uring_
As brought up in an issue, this makes it confusing as to what could
potentially be liburing functions. Make it clear that these are test
helpers, hence use the t_ prefix for them.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/madvise.c')
-rw-r--r-- | test/madvise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/madvise.c b/test/madvise.c index c06465f..89057af 100644 --- a/test/madvise.c +++ b/test/madvise.c @@ -104,7 +104,7 @@ static int test_madvise(struct io_uring *ring, const char *filename) return 1; } - buf = io_uring_malloc(FILE_SIZE); + buf = t_malloc(FILE_SIZE); ptr = mmap(NULL, FILE_SIZE, PROT_READ, MAP_PRIVATE, fd, 0); if (ptr == MAP_FAILED) { @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) fname = argv[1]; } else { fname = ".madvise.tmp"; - io_uring_create_file(fname, FILE_SIZE); + t_create_file(fname, FILE_SIZE); } if (io_uring_queue_init(8, &ring, 0)) { |