summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:54:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-15 19:19:23 +0100
commitbe78a5c7937a31128a3624dcace9df23492866f9 (patch)
tree18fe5f79b66f47aef9658d788fea84ef425d8127 /kern
parent6ff7e82fab67f23f0aa4caa18b886ce03c060f4d (diff)
Declare void argument lists
Diffstat (limited to 'kern')
-rw-r--r--kern/act.c6
-rw-r--r--kern/ast.c4
-rw-r--r--kern/boot_script.c2
-rw-r--r--kern/bootstrap.c6
-rw-r--r--kern/exception.c4
-rw-r--r--kern/mach_clock.c10
-rw-r--r--kern/startup.c6
-rw-r--r--kern/syscall_emulation.c2
-rw-r--r--kern/syscall_sw.c4
-rw-r--r--kern/time_stamp.c2
-rw-r--r--kern/timer.c2
11 files changed, 24 insertions, 24 deletions
diff --git a/kern/act.c b/kern/act.c
index d76fe0e..c0b6aa8 100644
--- a/kern/act.c
+++ b/kern/act.c
@@ -64,7 +64,7 @@ static Act free_acts[ACT_STATIC_KLUDGE];
Act null_act;
void
-global_act_init()
+global_act_init(void)
{
#ifndef ACT_STATIC_KLUDGE
kmem_cache_init(&act_cache, "Act", sizeof(struct Act), 0,
@@ -257,7 +257,7 @@ void act_detach(Act *cur_act)
so RPC entry paths need not check it.
Locking: Act */
-void act_execute_returnhandlers()
+void act_execute_returnhandlers(void)
{
Act *act = current_act();
@@ -1061,7 +1061,7 @@ act_set_state_immediate(act, flavor, new_state, new_state_count)
return act_set_state(act, flavor, new_state, new_state_count);
}
-void act_count()
+void act_count(void)
{
int i;
Act *act;
diff --git a/kern/ast.c b/kern/ast.c
index e8e8c1b..4b9d63d 100644
--- a/kern/ast.c
+++ b/kern/ast.c
@@ -56,7 +56,7 @@
volatile ast_t need_ast[NCPUS];
void
-ast_init()
+ast_init(void)
{
#ifndef MACHINE_AST
int i;
@@ -114,7 +114,7 @@ ast_taken(void)
}
void
-ast_check()
+ast_check(void)
{
int mycpu = cpu_number();
processor_t myprocessor;
diff --git a/kern/boot_script.c b/kern/boot_script.c
index b2e9393..a6196e0 100644
--- a/kern/boot_script.c
+++ b/kern/boot_script.c
@@ -485,7 +485,7 @@ boot_script_parse_line (void *hook, char *cmdline)
/* Execute commands previously parsed. */
int
-boot_script_exec ()
+boot_script_exec (void)
{
int cmd_index;
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 41b02fe..c0576b7 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -107,7 +107,7 @@ task_insert_send_right(
return name;
}
-void bootstrap_create()
+void bootstrap_create(void)
{
int compat;
int n = 0;
@@ -642,7 +642,7 @@ build_args_and_stack(struct exec_info *boot_exec_info,
static void
-user_bootstrap_compat()
+user_bootstrap_compat(void)
{
exec_info_t boot_exec_info;
@@ -744,7 +744,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc,
return 0;
}
-static void user_bootstrap()
+static void user_bootstrap(void)
{
struct user_bootstrap_info *info = current_thread()->saved.other;
exec_info_t boot_exec_info;
diff --git a/kern/exception.c b/kern/exception.c
index 0232773..2ca404d 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -217,7 +217,7 @@ exception_try_task(_exception, code, subcode)
*/
void
-exception_no_server()
+exception_no_server(void)
{
ipc_thread_t self = current_thread();
@@ -828,7 +828,7 @@ exception_parse_reply(kmsg)
*/
void
-exception_raise_continue()
+exception_raise_continue(void)
{
ipc_thread_t self = current_thread();
ipc_port_t reply_port = self->ith_port;
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 29a14c9..79e63dd 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -270,7 +270,7 @@ void clock_interrupt(usec, usermode, basepri)
* and corrupts it.
*/
-void softclock()
+void softclock(void)
{
/*
* Handle timeouts.
@@ -360,7 +360,7 @@ boolean_t reset_timeout(telt)
}
}
-void init_timeout()
+void init_timeout(void)
{
simple_lock_init(&timer_lock);
queue_init(&timer_head.chain);
@@ -490,7 +490,7 @@ host_adjust_time(host, new_adjustment, old_adjustment)
return (KERN_SUCCESS);
}
-void mapable_time_init()
+void mapable_time_init(void)
{
if (kmem_alloc_wired(kernel_map, (vm_offset_t *) &mtime, PAGE_SIZE)
!= KERN_SUCCESS)
@@ -499,11 +499,11 @@ void mapable_time_init()
update_mapped_time(&time);
}
-int timeopen()
+int timeopen(void)
{
return(0);
}
-int timeclose()
+int timeclose(void)
{
return(0);
}
diff --git a/kern/startup.c b/kern/startup.c
index 78c210d..81874e7 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -86,7 +86,7 @@ extern char *kernel_cmdline;
*
* Assumes that master_cpu is set.
*/
-void setup_main()
+void setup_main(void)
{
thread_t startup_thread;
@@ -198,7 +198,7 @@ void setup_main()
* Now running in a thread. Create the rest of the kernel threads
* and the bootstrap task.
*/
-void start_kernel_threads()
+void start_kernel_threads(void)
{
int i;
@@ -266,7 +266,7 @@ void start_kernel_threads()
}
#if NCPUS > 1
-void slave_main()
+void slave_main(void)
{
cpu_launch_first_thread(THREAD_NULL);
}
diff --git a/kern/syscall_emulation.c b/kern/syscall_emulation.c
index 0f4a2be..290c51a 100644
--- a/kern/syscall_emulation.c
+++ b/kern/syscall_emulation.c
@@ -57,7 +57,7 @@
/*
* eml_init: initialize user space emulation code
*/
-void eml_init()
+void eml_init(void)
{
}
diff --git a/kern/syscall_sw.c b/kern/syscall_sw.c
index 084f2e0..a383e46 100644
--- a/kern/syscall_sw.c
+++ b/kern/syscall_sw.c
@@ -60,13 +60,13 @@
boolean_t kern_invalid_debug = FALSE;
-mach_port_t null_port()
+mach_port_t null_port(void)
{
if (kern_invalid_debug) SoftDebugger("null_port mach trap");
return(MACH_PORT_NULL);
}
-kern_return_t kern_invalid()
+kern_return_t kern_invalid(void)
{
if (kern_invalid_debug) SoftDebugger("kern_invalid mach trap");
return(KERN_INVALID_ARGUMENT);
diff --git a/kern/time_stamp.c b/kern/time_stamp.c
index 9adfc14..2c14274 100644
--- a/kern/time_stamp.c
+++ b/kern/time_stamp.c
@@ -54,7 +54,7 @@ struct tsval *tsp;
* Initialization procedure.
*/
-void timestamp_init()
+void timestamp_init(void)
{
ts_tick_count = 0;
}
diff --git a/kern/timer.c b/kern/timer.c
index 0c73c69..6ee9a10 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -45,7 +45,7 @@ timer_data_t kernel_timer[NCPUS];
* service routine on the callout queue. All timers must be
* serviced by the callout routine once an hour.
*/
-void init_timers()
+void init_timers(void)
{
int i;
timer_t this_timer;