From 827c01fadb98e77f692d39d0fb34a1944e43c99b Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Mon, 16 Dec 2013 23:55:15 +0100 Subject: kern: qualify pointers whose dereferenced values are constant with const --- kern/sched_prim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/sched_prim.c') diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 8aad1462..f8170044 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -358,7 +358,7 @@ void clear_wait( } static inline void __attribute__((noreturn)) -state_panic(thread_t thread, const char *caller) +state_panic(const thread_t thread, const char *caller) { panic ("%s: thread %x has unexpected state %x", caller, thread, thread->state); @@ -1076,7 +1076,7 @@ void compute_my_priority( * * Update the priorities of all threads periodically. */ -void recompute_priorities(void *param) +void recompute_priorities(const void *param) { #if SIMPLE_CLOCK int new_usec; @@ -1990,7 +1990,7 @@ void do_thread_scan(void) #if DEBUG void checkrq( run_queue_t rq, - char *msg) + const char *msg) { queue_t q1; int i, j; -- cgit v1.2.3