diff options
Diffstat (limited to 'kern')
-rw-r--r-- | kern/bootstrap.c | 4 | ||||
-rw-r--r-- | kern/machine.c | 4 | ||||
-rw-r--r-- | kern/sched_prim.h | 4 | ||||
-rw-r--r-- | kern/startup.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c index 86e238a..3e24d7b 100644 --- a/kern/bootstrap.c +++ b/kern/bootstrap.c @@ -82,8 +82,8 @@ static mach_port_t boot_host_port; /* local name */ extern char *kernel_cmdline; -static void user_bootstrap(); /* forward */ -static void user_bootstrap_compat(); /* forward */ +static void user_bootstrap(void); /* forward */ +static void user_bootstrap_compat(void); /* forward */ static void bootstrap_exec_compat(void *exec_data); /* forward */ static void get_compat_strings(char *flags_str, char *root_str); /* forward */ diff --git a/kern/machine.c b/kern/machine.c index d5944ce..52133cb 100644 --- a/kern/machine.c +++ b/kern/machine.c @@ -361,7 +361,7 @@ processor_t processor; /* * action_thread() shuts down processors or changes their assignment. */ -void action_thread_continue() +void action_thread_continue(void) { processor_t processor; spl_t s; @@ -390,7 +390,7 @@ void action_thread_continue() } } -void __attribute__((noreturn)) action_thread() +void __attribute__((noreturn)) action_thread(void) { action_thread_continue(); /*NOTREACHED*/ diff --git a/kern/sched_prim.h b/kern/sched_prim.h index 50041e4..8c62b8b 100644 --- a/kern/sched_prim.h +++ b/kern/sched_prim.h @@ -69,7 +69,7 @@ extern void thread_sleep( event_t event, simple_lock_t lock, boolean_t interruptible); -extern void thread_wakeup(); /* for function pointers */ +extern void thread_wakeup(void); /* for function pointers */ extern void thread_wakeup_prim( event_t event, boolean_t one_thread, @@ -103,7 +103,7 @@ extern boolean_t thread_handoff( thread_t old_thread, continuation_t continuation, thread_t new_thread); -extern void recompute_priorities(); +extern void recompute_priorities(const void *param); extern void update_priority( thread_t thread); extern void compute_my_priority( diff --git a/kern/startup.c b/kern/startup.c index 81874e7..12f5123 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -155,7 +155,7 @@ void setup_main(void) * Kick off the time-out driven routines by calling * them the first time. */ - recompute_priorities(); + recompute_priorities(NULL); compute_mach_factor(); /* |