From 0190e74b31835ffbd3e451c7de7e9a151c5511d2 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 1 Jul 2005 13:23:30 +0000 Subject: BUILD : 1.7.10 (840) BUGS : NOTES : Fixed most core compile warnings when using make strict git-svn-id: svn://svn.anope.org/anope/trunk@840 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@593 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules.c') diff --git a/src/modules.c b/src/modules.c index 12a8fbea3..fe5d1b26c 100644 --- a/src/modules.c +++ b/src/modules.c @@ -147,7 +147,7 @@ int protocol_module_init(void) /* We can assume the ircd supports TS6 here */ if (UseTS6 && !Numeric) { - error(0, "UseTS6 requires the setting of Numeric to be enabled."); + alog("UseTS6 requires the setting of Numeric to be enabled."); ret = -1; } @@ -474,7 +474,7 @@ int loadModule(Module * m, User * u) return MOD_ERR_NOLOAD; } ano_modclearerr(); - func = ano_modsym(m->handle, "AnopeInit"); + func = (int (*)(int, char **))ano_modsym(m->handle, "AnopeInit"); if ((err = ano_moderr()) != NULL) { ano_modclose(m->handle); /* If no AnopeInit - it isnt an Anope Module, close it */ if (u) { @@ -540,7 +540,7 @@ int loadModule(Module * m, User * u) int unloadModule(Module * m, User * u) { #ifdef USE_MODULES - void (*func) (); + void (*func) (void); if (!m || !m->handle) { if (u) { @@ -560,7 +560,7 @@ int unloadModule(Module * m, User * u) return MOD_ERR_UNKNOWN; } - func = ano_modsym(m->handle, "AnopeFini"); + func = (void (*)(void))ano_modsym(m->handle, "AnopeFini"); if (func) { mod_current_module_name = m->name; func(); /* exec AnopeFini */ -- cgit