From d8f8eeca52af13c0f86ca85ff67cac5c4c44f2b4 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Thu, 6 Feb 2014 00:10:35 -0500 Subject: [PATCH] Fix signature on clear timeout for extensions --- src/extension/libevent.c | 2 +- src/extension/libuv.c | 2 +- src/types-internal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension/libevent.c b/src/extension/libevent.c index 02b27262..70fff138 100644 --- a/src/extension/libevent.c +++ b/src/extension/libevent.c @@ -111,7 +111,7 @@ getdns_libevent_schedule_timeout(struct getdns_context* context, static getdns_return_t getdns_libevent_clear_timeout(struct getdns_context* context, - void* eventloop_data, void** eventloop_timer) { + void* eventloop_data, void* eventloop_timer) { struct event* ev = (struct event*) eventloop_timer; event_del(ev); event_free(ev); diff --git a/src/extension/libuv.c b/src/extension/libuv.c index 1ce6e819..d8a1a9e8 100644 --- a/src/extension/libuv.c +++ b/src/extension/libuv.c @@ -99,7 +99,7 @@ getdns_libuv_schedule_timeout(struct getdns_context* context, static getdns_return_t getdns_libuv_clear_timeout(struct getdns_context* context, - void* eventloop_data, void** eventloop_timer) { + void* eventloop_data, void* eventloop_timer) { uv_timer_t* timer = (uv_timer_t*) eventloop_timer; uv_timer_stop(timer); uv_close((uv_handle_t*) timer, getdns_libuv_close_cb); diff --git a/src/types-internal.h b/src/types-internal.h index 36d90e9e..d071bc21 100644 --- a/src/types-internal.h +++ b/src/types-internal.h @@ -259,7 +259,7 @@ typedef getdns_return_t (*getdns_eventloop_schedule_timeout_t)(struct getdns_con getdns_timeout_data_t* timeout_data, void** eventloop_timer); typedef getdns_return_t (*getdns_eventloop_clear_timeout_t)(struct getdns_context* context, - void* eventloop_data, void** eventloop_timer); + void* eventloop_data, void* eventloop_timer); typedef struct getdns_eventloop_extension {