diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-26 20:03:13 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-02-26 20:03:13 +0100 |
commit | d60c7a895e1bdfc37de7fe0a63c5c1a7b68cc0db (patch) | |
tree | 1c1875268070bafa21a2483993a436a4b1d70727 /tests | |
parent | 17a5a28202fbbcb2279d967adf285eb4d3cb8b49 (diff) |
[timer] Fix compile warning of the timer test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/timer/timer_test.c | 5 |
1 files 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) { |