From f533e173fccb40aac5c3e7f4f2277f3cdec5d029 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:19 +0100 Subject: kern: avoid the casts in enqueue_head() and enqueue_tail() * kern/eventcount.c (simpler_thread_setrun) (enqueue_head) (th): Avoid the cast. * kern/thread.c (thread_halt_self) (enqueue_tail) (thread): Likewise. * kern/thread_swap.c (thread_swapin) (enqueue_tail) (thread): Likewise. --- kern/thread_swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/thread_swap.c') diff --git a/kern/thread_swap.c b/kern/thread_swap.c index 94e5c21..087c8bc 100644 --- a/kern/thread_swap.c +++ b/kern/thread_swap.c @@ -97,7 +97,7 @@ void thread_swapin(thread) thread->state = (thread->state & ~TH_SWAP_STATE) | TH_SW_COMING_IN; swapper_lock(); - enqueue_tail(&swapin_queue, (queue_entry_t) thread); + enqueue_tail(&swapin_queue, &(thread->links)); swapper_unlock(); thread_wakeup((event_t) &swapin_queue); break; -- cgit v1.2.3