summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-19 20:43:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-20 00:26:27 +0100
commit549984f6b3b5ec146edcb03d86e637eff9956bd2 (patch)
tree5c082377d5f22bafbaae71408062ba2aaef18c5d /kern
parentf533e173fccb40aac5c3e7f4f2277f3cdec5d029 (diff)
Declare void argument lists (part 2)
Declare void argument lists that were not declared in the first part of this patch and * kern/sched_prim.h (recompute_priorities): Fix prototype. * kern/startup.c (setup_main) (recompute_priorities): Fix call.
Diffstat (limited to 'kern')
-rw-r--r--kern/bootstrap.c4
-rw-r--r--kern/machine.c4
-rw-r--r--kern/sched_prim.h4
-rw-r--r--kern/startup.c2
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();
/*