From cdab6fb231fd19ef1ae22db7c1cc98b8f7fbf98c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Jul 2008 17:26:00 +0000 Subject: 2008-07-20 Samuel Thibault * kern/mach_clock.c (timeout): Make the `fcn' parameter take a void * instead of char *. * kern/mach_clock.h (timeout): Likewise. --- ChangeLog | 3 +++ kern/mach_clock.c | 4 ++-- kern/mach_clock.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b15bd6..7d4fddc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ * kern/lock_mon.c (retry_simple_lock, retry_bit_lock): Likewise. * kern/machine.c (Debugger): Remove declaration. * device/net_io.c (net_deliver): Fix parenthesis to really round up. + * kern/mach_clock.c (timeout): Make the `fcn' parameter take a void * + instead of char *. + * kern/mach_clock.h (timeout): Likewise. 2008-07-19 Barry deFreese 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_ */ -- cgit v1.2.3