From 3751123fa9e75206639e7e0229b71e34f6c583ae Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Thu, 13 Oct 2016 08:10:07 -0400 Subject: [PATCH] unified: align prototype and definition of k_thread_priority_set Change-Id: I7299ded2fc66acb5806499ea26e1e5daedc7cc9c Signed-off-by: Benjamin Walsh --- kernel/unified/sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/unified/sched.c b/kernel/unified/sched.c index fc4a5e8c3cb..b663bad3761 100644 --- a/kernel/unified/sched.c +++ b/kernel/unified/sched.c @@ -222,10 +222,11 @@ int k_thread_priority_get(k_tid_t thread) } /* application API: change a thread's priority. Not callable from ISR */ -void k_thread_priority_set(struct k_thread *thread, int prio) +void k_thread_priority_set(k_tid_t tid, int prio) { __ASSERT(!_is_in_isr(), ""); + struct k_thread *thread = (struct k_thread *)tid; int key = irq_lock(); _thread_priority_set(thread, prio);