From afcb12cef0b48755118a61fee0f706c5058b7a0d Mon Sep 17 00:00:00 2001 From: Themis Demetriades Date: Sun, 20 Oct 2024 20:38:28 +0100 Subject: [PATCH] Reformat thread priority changing functions to follow style w/ S --- src/threads/thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/threads/thread.c b/src/threads/thread.c index 1f2d273..d85e05a 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -385,7 +385,6 @@ thread_set_priority (int new_base_priority) if (new_base_priority == old_base_priority) return; - t->base_priority = new_base_priority; t->priority = new_base_priority; @@ -413,7 +412,7 @@ thread_recalculate_priority (void) list_entry (list_max (&t->donors_list, priority_more, NULL), struct thread, donor_elem)->priority; - if(max_donated_priority > t->priority) + if (max_donated_priority > t->priority) t->priority = max_donated_priority; } }