summaryrefslogtreecommitdiff
path: root/lib/wheel.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wheel.h')
-rw-r--r--lib/wheel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wheel.h b/lib/wheel.h
index e66751c1d0..401789e1a0 100644
--- a/lib/wheel.h
+++ b/lib/wheel.h
@@ -38,7 +38,7 @@ struct timer_wheel {
/*
* Key to determine what slot the item belongs in
*/
- unsigned int (*slot_key)(void *);
+ unsigned int (*slot_key)(const void *);
void (*slot_run)(void *);
};
@@ -80,9 +80,9 @@ struct timer_wheel {
* of running your code.
*/
struct timer_wheel *wheel_init(struct thread_master *master, int period,
- size_t slots, unsigned int (*slot_key)(void *),
- void (*slot_run)(void *),
- const char *run_name);
+ size_t slots,
+ unsigned int (*slot_key)(const void *),
+ void (*slot_run)(void *), const char *run_name);
/*
* Delete the specified timer wheel created