diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-16 23:55:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-17 19:05:21 +0100 |
commit | f533e173fccb40aac5c3e7f4f2277f3cdec5d029 (patch) | |
tree | 9b51a47a002008234412c2de21a3cab0109a32a6 /kern/thread.c | |
parent | 13a3d2472961902e809bb90fc5adc6b7696f7db5 (diff) | |
download | gnumach-f533e173fccb40aac5c3e7f4f2277f3cdec5d029.tar.gz gnumach-f533e173fccb40aac5c3e7f4f2277f3cdec5d029.tar.bz2 gnumach-f533e173fccb40aac5c3e7f4f2277f3cdec5d029.zip |
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.
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.c b/kern/thread.c index ddb06d52..84749501 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1149,7 +1149,7 @@ void thread_halt_self(void) s = splsched(); simple_lock(&reaper_lock); - enqueue_tail(&reaper_queue, (queue_entry_t) thread); + enqueue_tail(&reaper_queue, &(thread->links)); simple_unlock(&reaper_lock); thread_lock(thread); |