From 475227968662f72fbd9e80a96e5b04f8e16e8676 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 17 Apr 2012 20:50:41 +0000 Subject: [PATCH] Fix hooks on previously-disabled modules. --- cs_babbler.c | 4 +--- mlocktweaker.c | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cs_babbler.c b/cs_babbler.c index 44a3c9a..4af89fd 100644 --- a/cs_babbler.c +++ b/cs_babbler.c @@ -44,10 +44,8 @@ DECLARE_MODULE_V1 ); static void -on_channel_message(void *p) +on_channel_message(hook_cmessage_data_t *data) { - hook_cmessage_data_t *data = p; - if (data != NULL && data->msg != NULL) { mychan_t *mc = MYCHAN_FROM(data->c); diff --git a/mlocktweaker.c b/mlocktweaker.c index 74d111f..79188db 100644 --- a/mlocktweaker.c +++ b/mlocktweaker.c @@ -35,9 +35,8 @@ void _moddeinit(module_unload_intent_t intent) hook_del_channel_register(handle_channel_register); } -static void handle_channel_register(void *vptr) +static void handle_channel_register(hook_channel_req_t *hdata) { - hook_channel_req_t *hdata = vptr; mychan_t *mc = hdata->mc; unsigned int *target; char *it, *str = MLOCK_CHANGE;