mirror of
https://github.com/gosticks/RIOT.git
synced 2026-12-04 12:11:48 +00:00
fixed warnings in vtimer
This commit is contained in:
committed by
Ludwig Ortmann
parent
92f4aa32c9
commit
c6073762fa
+2
-2
@@ -272,7 +272,7 @@ int vtimer_init()
|
||||
int vtimer_set_wakeup(vtimer_t *t, timex_t interval, int pid)
|
||||
{
|
||||
int ret;
|
||||
t->action = (void *) thread_wakeup;
|
||||
t->action = (void(*)(void *)) thread_wakeup;
|
||||
t->arg = (void *) pid;
|
||||
t->absolute = interval;
|
||||
t->pid = 0;
|
||||
@@ -311,7 +311,7 @@ int vtimer_remove(vtimer_t *t)
|
||||
|
||||
int vtimer_set_msg(vtimer_t *t, timex_t interval, unsigned int pid, void *ptr)
|
||||
{
|
||||
t->action = (void *) msg_send_int;
|
||||
t->action = (void(*)(void *)) msg_send_int;
|
||||
t->arg = ptr;
|
||||
t->absolute = interval;
|
||||
t->pid = pid;
|
||||
|
||||
Reference in New Issue
Block a user