diff options
Diffstat (limited to 'src/plugins/console.c')
-rw-r--r-- | src/plugins/console.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/console.c b/src/plugins/console.c index 5374d784f..5056eafdc 100644 --- a/src/plugins/console.c +++ b/src/plugins/console.c @@ -127,10 +127,10 @@ PLUGIN_EVENTS_TABLE = { // Imported functions -typedef int TimerFunc(int tid, unsigned int tick, int id, int data); +typedef int (*TimerFunc)(int tid, unsigned int tick, int id, intptr data); int (*add_timer_func_list)(TimerFunc func, char* name); -int (*add_timer_interval)(unsigned int tick, TimerFunc* func, int id, int data, int interval); -int (*delete_timer)(int tid, TimerFunc* func); +int (*add_timer_interval)(unsigned int tick, TimerFunc func, int id, intptr data, int interval); +int (*delete_timer)(int tid, TimerFunc func); unsigned int (*gettick)(void); int (*parse_console)(char* buf); @@ -424,7 +424,7 @@ WORKER_FUNC_END(getinput) /// Timer function that checks if there's assynchronous input data and feeds parse_console() /// The input reads one line at a time and line terminators are removed. -int console_getinputtimer(int tid, unsigned int tick, int id, int data) +int console_getinputtimer(int tid, unsigned int tick, int id, intptr data) { char* cmd; size_t len; |