summaryrefslogtreecommitdiff
path: root/lib/wheel.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wheel.c')
-rw-r--r--lib/wheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wheel.c b/lib/wheel.c
index cdf738a137..6e9c88de9d 100644
--- a/lib/wheel.c
+++ b/lib/wheel.c
@@ -94,7 +94,7 @@ struct timer_wheel *wheel_init(struct thread_master *master, int period,
wheel->nexttime = period / slots;
wheel->wheel_slot_lists = XCALLOC(MTYPE_TIMER_WHEEL_LIST,
- slots * sizeof(struct listnode *));
+ slots * sizeof(struct list *));
for (i = 0; i < slots; i++)
wheel->wheel_slot_lists[i] = list_new();