Change:
int tickEvent = t.every(2000, doSomething, (void*)0);
to:
int tickEvent = t.every(2000, doSomething, 0);
And the other place where you cast the optional data to void *, and it will compile.
Change:
int tickEvent = t.every(2000, doSomething, (void*)0);
to:
int tickEvent = t.every(2000, doSomething, 0);
And the other place where you cast the optional data to void *, and it will compile.