From 8ff63b062d724826d8017504063df9b92f8e6703 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 21 Feb 2024 00:14:29 +0100 Subject: New clang-format options --- kernel/halts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel/halts.c') diff --git a/kernel/halts.c b/kernel/halts.c index c2b682e..c5afdac 100644 --- a/kernel/halts.c +++ b/kernel/halts.c @@ -5,6 +5,9 @@ int isset_fdhalt(process_t *p) { int blocked = 0; struct list *read_list = &p->read_list; + struct list *write_list = &p->write_list; + struct list *disconnect_list = &p->disconnect_list; + for (int i = 0;; i++) { vfs_inode_t *inode; if (!list_get(read_list, i, (void **)&inode)) { @@ -15,7 +18,6 @@ int isset_fdhalt(process_t *p) { } blocked = 1; } - struct list *write_list = &p->write_list; for (int i = 0;; i++) { vfs_inode_t *inode; if (!list_get(write_list, i, (void **)&inode)) { @@ -26,7 +28,6 @@ int isset_fdhalt(process_t *p) { } blocked = 1; } - struct list *disconnect_list = &p->disconnect_list; for (int i = 0;; i++) { vfs_inode_t *inode; if (!list_get(disconnect_list, i, (void **)&inode)) { -- cgit v1.2.3