diff options
author | Guy-Fleury Iteriteka <gfleury@disroot.org> | 2023-01-01 14:48:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 13:55:45 +0100 |
commit | f41500837c5a0d0433bbc7cc1de603cbccfc2958 (patch) | |
tree | c721d580ea80c21ecea427fd712ecdaba15fd8c5 /kern/mach_clock.c | |
parent | 9f6fb41fb056ee5dd63b7968eab0280dc02af1cc (diff) | |
download | gnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.tar.gz gnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.tar.bz2 gnumach-f41500837c5a0d0433bbc7cc1de603cbccfc2958.zip |
convert K&R into ansi.
Message-Id: <Y7GBIF6mBjV6kBM+@falom>
Diffstat (limited to 'kern/mach_clock.c')
-rw-r--r-- | kern/mach_clock.c | 20 |
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; |