From bc9e0854a2c7336c6f7b4a388b5ff00b9f4865e8 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 21 Apr 2008 21:34:31 +0000 Subject: * Changed the data field of timers from int to intptr. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12633 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/timer.c') diff --git a/src/common/timer.c b/src/common/timer.c index 0eb16c45f..183daad30 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -239,7 +239,7 @@ static int acquire_timer(void) /// Starts a new timer that is deleted once it expires (single-use). /// Returns the timer's id. -int add_timer(unsigned int tick, TimerFunc func, int id, int data) +int add_timer(unsigned int tick, TimerFunc func, int id, intptr data) { int tid; @@ -257,7 +257,7 @@ int add_timer(unsigned int tick, TimerFunc func, int id, int data) /// Starts a new timer that automatically restarts itself (infinite loop until manually removed). /// Returns the timer's id, or -1 if it fails. -int add_timer_interval(unsigned int tick, TimerFunc func, int id, int data, int interval) +int add_timer_interval(unsigned int tick, TimerFunc func, int id, intptr data, int interval) { int tid; -- cgit v1.2.3-60-g2f50