aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2023-01-01 14:48:32 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 13:55:45 +0100
commitf41500837c5a0d0433bbc7cc1de603cbccfc2958 (patch)
treec721d580ea80c21ecea427fd712ecdaba15fd8c5
parent9f6fb41fb056ee5dd63b7968eab0280dc02af1cc (diff)
downloadgnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.tar.gz
gnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.tar.bz2
gnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.zip
convert K&R into ansi.
Message-Id: <Y7GBIF6mBjV6kBM+@falom>
-rw-r--r--kern/mach_clock.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index c6e54c20..ad986c64 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -433,9 +433,7 @@ read_time_stamp (time_value_t *stamp, time_value_t *result)
* Read the time.
*/
kern_return_t
-host_get_time(host, current_time)
- const host_t host;
- time_value_t *current_time; /* OUT */
+host_get_time(const host_t host, time_value_t *current_time)
{
if (host == HOST_NULL)
return(KERN_INVALID_HOST);
@@ -448,9 +446,7 @@ host_get_time(host, current_time)
* Set the time. Only available to privileged users.
*/
kern_return_t
-host_set_time(host, new_time)
- const host_t host;
- time_value_t new_time;
+host_set_time(const host_t host, time_value_t new_time)
{
spl_t s;
@@ -487,10 +483,10 @@ host_set_time(host, new_time)
* Adjust the time gradually.
*/
kern_return_t
-host_adjust_time(host, new_adjustment, old_adjustment)
- const host_t host;
- time_value_t new_adjustment;
- time_value_t *old_adjustment; /* OUT */
+host_adjust_time(
+ const host_t host,
+ time_value_t new_adjustment,
+ time_value_t *old_adjustment /* OUT */)
{
time_value_t oadj;
unsigned int ndelta;
@@ -598,9 +594,7 @@ void timeout(
* Returns a boolean indicating whether the timeout element was found
* and removed.
*/
-boolean_t untimeout(fcn, param)
- void (*fcn)( void * param );
- const void * param;
+boolean_t untimeout(void (*fcn)( void * param ), const void *param)
{
spl_t s;
timer_elt_t elt;