summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-20 17:26:00 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:17 +0200
commitcdab6fb231fd19ef1ae22db7c1cc98b8f7fbf98c (patch)
tree947b8a070c9ccb29788e2e3485f47c307717aad4 /kern
parent3bb46984fe4c76460a48cec338d210fe59a17807 (diff)
2008-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
* kern/mach_clock.c (timeout): Make the `fcn' parameter take a void * instead of char *. * kern/mach_clock.h (timeout): Likewise.
Diffstat (limited to 'kern')
-rw-r--r--kern/mach_clock.c4
-rw-r--r--kern/mach_clock.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 781101b..2c7969e 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -528,8 +528,8 @@ timer_elt_data_t timeout_timers[NTIMERS];
* interval: timeout interval, in hz.
*/
void timeout(fcn, param, interval)
- int (*fcn)(/* char * param */);
- char * param;
+ int (*fcn)( void * param );
+ void * param;
int interval;
{
spl_t s;
diff --git a/kern/mach_clock.h b/kern/mach_clock.h
index 93237aa..4e8b83e 100644
--- a/kern/mach_clock.h
+++ b/kern/mach_clock.h
@@ -99,7 +99,7 @@ extern kern_return_t host_adjust_time(
extern void mapable_time_init (void);
/* For public timer elements. */
-extern void timeout(int (*fcn)(), char *param, int interval);
+extern void timeout(int (*fcn)(void *), void *param, int interval);
extern boolean_t untimeout(int (*fcn)(), char *param);
#endif /* _KERN_MACH_CLOCK_H_ */