aboutsummaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2022-05-26 18:07:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-05-27 00:29:29 +0200
commit151dfe9971ac2bd4d9afb440f2a5b2a4f9a58969 (patch)
treea4f405b8d09270e20a0db24a126ec68adea1f227 /kern
parent96b925573917679a5899a74c1c279c734e614211 (diff)
downloadgnumach-151dfe9971ac2bd4d9afb440f2a5b2a4f9a58969.tar.gz
gnumach-151dfe9971ac2bd4d9afb440f2a5b2a4f9a58969.tar.bz2
gnumach-151dfe9971ac2bd4d9afb440f2a5b2a4f9a58969.zip
convert K&R into ansi
Message-Id: <Yo+lzS7RtW5ZjQHN@debian>
Diffstat (limited to 'kern')
-rw-r--r--kern/machine.c7
-rw-r--r--kern/profile.c15
2 files changed, 7 insertions, 15 deletions
diff --git a/kern/machine.c b/kern/machine.c
index 2fe30cee..0e1781cc 100644
--- a/kern/machine.c
+++ b/kern/machine.c
@@ -125,9 +125,7 @@ void cpu_down(int cpu)
}
kern_return_t
-host_reboot(host, options)
- const host_t host;
- int options;
+host_reboot(const host_t host, int options)
{
if (host == HOST_NULL)
return (KERN_INVALID_HOST);
@@ -623,8 +621,7 @@ Restart_pset:
* running on the processor's shutdown stack.
*/
-void processor_doshutdown(processor)
-processor_t processor;
+void processor_doshutdown(processor_t processor)
{
int cpu = processor->slot_num;
diff --git a/kern/profile.c b/kern/profile.c
index b33d6953..4fcd541f 100644
--- a/kern/profile.c
+++ b/kern/profile.c
@@ -180,8 +180,7 @@ printf("profile_thread: mach_msg failed returned %x\n",(int)mr);
#include <mach/message.h>
void
-send_last_sample_buf(th)
-thread_t th;
+send_last_sample_buf(thread_t th)
{
spl_t s;
buf_to_send_t buf_entry;
@@ -290,10 +289,9 @@ profile(pc) {
MiG, even though it is not used in the function itself. */
kern_return_t
-mach_sample_thread (task, reply, cur_thread)
-ipc_space_t task;
-ipc_object_t reply;
-thread_t cur_thread;
+mach_sample_thread (ipc_space_t task,
+ ipc_object_t reply,
+ thread_t cur_thread)
{
/*
* This routine is called every time that a new thread has made
@@ -349,10 +347,7 @@ printf("ERROR:mach_sample_thread:cannot set pbuf_nb\n");
}
kern_return_t
-mach_sample_task (task, reply, cur_task)
-ipc_space_t task;
-ipc_object_t reply;
-task_t cur_task;
+mach_sample_task (ipc_space_t task, ipc_object_t reply, task_t cur_task)
{
prof_data_t pbuf=cur_task->profil_buffer;
vm_offset_t vmpbuf;