From d60c7a895e1bdfc37de7fe0a63c5c1a7b68cc0db Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 26 Feb 2010 20:03:13 +0100 Subject: [timer] Fix compile warning of the timer test --- tests/timer/timer_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/timer/timer_test.c b/tests/timer/timer_test.c index 3b441550..1b458d81 100644 --- a/tests/timer/timer_test.c +++ b/tests/timer/timer_test.c @@ -25,7 +25,7 @@ #include "../../config.h" -static void timer_fired(unsigned long data); +static void timer_fired(void *data); static struct timer_list timer_one = { .cb = timer_fired, @@ -42,8 +42,9 @@ static struct timer_list timer_three = { .data = (void*)3, }; -static void timer_fired(unsigned long data) +static void timer_fired(void *_data) { + unsigned long data = (unsigned long) _data; printf("Fired timer: %lu\n", data); if (data == 1) { -- cgit v1.2.3