summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-20 11:12:49 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-22 07:17:19 -0700
commiteeeaa3ed4ce574fd4ddfa13738e7ca000cc14449 (patch)
tree2b6b03fc497ef40e19b702d322ac6963ff6126f7
parent736a6e7daeef0413b00f29a20388278e8d205617 (diff)
downloadliburing-eeeaa3ed4ce574fd4ddfa13738e7ca000cc14449.tar.gz
liburing-eeeaa3ed4ce574fd4ddfa13738e7ca000cc14449.tar.bz2
test/getdents: style fixups
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/getdents.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/getdents.c b/test/getdents.c
index 81da36c..d23f4cb 100644
--- a/test/getdents.c
+++ b/test/getdents.c
@@ -56,8 +56,7 @@ static void drain_cqes(void);
static void schedule_readdir(struct dir *dir);
/* List helper functions. */
-static inline void
-list_add_tail(struct list *l, struct list *head)
+static inline void list_add_tail(struct list *l, struct list *head)
{
l->next = head;
l->prev = head->prev;
@@ -101,9 +100,9 @@ static struct io_uring_sqe *get_sqe(void)
static void drain_cqes(void)
{
- int count;
- uint32_t head;
- struct io_uring_cqe *cqe;
+ struct io_uring_cqe *cqe;
+ uint32_t head;
+ int count;
count = 0;
io_uring_for_each_cqe (&ring, head, cqe) {
@@ -123,9 +122,9 @@ static void drain_cqes(void)
static void schedule_opendir(struct dir *parent, const char *name)
{
- int len = strlen(name);
- struct dir *dir;
- struct io_uring_sqe *sqe;
+ struct io_uring_sqe *sqe;
+ int len = strlen(name);
+ struct dir *dir;
dir = malloc(sizeof(*dir) + len + 1);
if (dir == NULL) {