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 | ||||
-rw-r--r-- | kern/strings.c | 6 |
5 files changed, 10 insertions, 10 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(); /* diff --git a/kern/strings.c b/kern/strings.c index 0752722..c77ae4f 100644 --- a/kern/strings.c +++ b/kern/strings.c @@ -53,7 +53,7 @@ * contents are identical upto the length of s1. */ -int +int __attribute__ ((pure)) strcmp( const char *s1, const char *s2) @@ -80,7 +80,7 @@ strcmp( * comparison runs for at most "n" characters. */ -int +int __attribute__ ((pure)) strncmp( const char *s1, const char *s2, @@ -161,7 +161,7 @@ strncpy( * the terminating null character. */ -size_t +size_t __attribute__ ((pure)) strlen( const char *string) { |