aboutsummaryrefslogtreecommitdiffstats
path: root/tests/timer/timer_test.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-26 20:03:13 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-26 20:03:13 +0100
commitd60c7a895e1bdfc37de7fe0a63c5c1a7b68cc0db (patch)
tree1c1875268070bafa21a2483993a436a4b1d70727 /tests/timer/timer_test.c
parent17a5a28202fbbcb2279d967adf285eb4d3cb8b49 (diff)
[timer] Fix compile warning of the timer test
Diffstat (limited to 'tests/timer/timer_test.c')
-rw-r--r--tests/timer/timer_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/timer/timer_test.c b/tests/timer/timer_test.c
index 3b44155..1b458d8 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) {