summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeiping Zhang <zhangweiping@didiglobal.com>2019-05-20 22:35:33 +0800
committerJens Axboe <axboe@kernel.dk>2019-05-20 08:44:41 -0600
commit5e4139a094e6e55dfa38d8ae954f0f24aa5f47c2 (patch)
treebf08de68ea82d39e443432ccb3b8e3dd1a39b0e7
parent0cff60080c8228175cdd35efbda434dec7b687ea (diff)
fix harmless typo in sq_entries in io_uring_mmap
We really should use a ';' to terminate the line. This is just a cosmetic issue, no functional changes. Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com> Modified wording Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c
index 9979dd0..6ed64ed 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -29,7 +29,7 @@ static int io_uring_mmap(int fd, struct io_uring_params *p,
sq->kdropped = ptr + p->sq_off.dropped;
sq->array = ptr + p->sq_off.array;
- size = p->sq_entries * sizeof(struct io_uring_sqe),
+ size = p->sq_entries * sizeof(struct io_uring_sqe);
sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_POPULATE, fd,
IORING_OFF_SQES);