diff options
Diffstat (limited to 'usr.sbin/amd/amd/clock.c')
-rw-r--r-- | usr.sbin/amd/amd/clock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/amd/amd/clock.c b/usr.sbin/amd/amd/clock.c index 7e1da8a8760..cfbc98b2628 100644 --- a/usr.sbin/amd/amd/clock.c +++ b/usr.sbin/amd/amd/clock.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 8.1 (Berkeley) 6/6/93 - * $Id: clock.c,v 1.5 2003/06/02 23:36:51 millert Exp $ + * $Id: clock.c,v 1.6 2014/10/26 03:03:34 guenther Exp $ */ /* @@ -51,7 +51,7 @@ typedef struct callout callout; struct callout { callout *c_next; /* List of callouts */ - void (*c_fn)(); /* Function to call */ + void (*c_fn)(void *); /* Function to call */ void *c_closure; /* Closure to pass to call */ time_t c_time; /* Time of call */ int c_id; /* Unique identifier */ @@ -104,7 +104,7 @@ free_callout(callout *cp) * (*fn)(closure) will be called at clocktime() + secs */ int -timeout(unsigned int secs, void (*fn)(), void *closure) +timeout(unsigned int secs, void (*fn)(void *), void *closure) { callout *cp, *cp2; time_t t = clocktime() + secs; @@ -205,7 +205,7 @@ softclock(void) * function will call timeout() * and try to allocate a callout */ - void (*fn)() = cp->c_fn; + void (*fn)(void *) = cp->c_fn; void *closure = cp->c_closure; callouts.c_next = cp->c_next; |