diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | include/extern.h | 5 | ||||
-rw-r--r-- | src/modules.c | 8 | ||||
-rw-r--r-- | version.log | 6 |
4 files changed, 14 insertions, 6 deletions
@@ -3,6 +3,7 @@ Anope Version S V N Provided by Anope Dev. <dev@anope.org> - 2005 06/26 A New module pack module: hs_request. [ #00] 06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389] +07/01 F Most core compile warnings when using make strict. [ #00] 07/01 F Requesting a -version on startup doesn't require a valid config. [ #00] 06/04 F Register script now works again. [#394] 06/04 F Finishing sync for Ultimate3 was not done correctly. [#398] diff --git a/include/extern.h b/include/extern.h index 43069f7e8..5e1229440 100644 --- a/include/extern.h +++ b/include/extern.h @@ -582,7 +582,8 @@ E void set_lastmask(User * u); /**** init.c ****/ E void introduce_user(const char *user); -E int init(int ac, char **av); +E int init_primary(int ac, char **av); +E int init_secondary(int ac, char **av); E int servernum; /**** ircd.c ****/ @@ -1153,6 +1154,8 @@ E void notice(char *source, char *dest, const char *fmt, ...); /******************************************************************************/ +E int anope_set_mod_current_buffer(int ac, char **av); + E void anope_cmd_211(const char *fmt, ...); /* 211 */ E void anope_cmd_219(char *source, char *who); /* 219 */ E void anope_cmd_242(const char *fmt, ...); /* 242 */ 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 */ diff --git a/version.log b/version.log index c42a0d6c1..beb74e923 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="10" -VERSION_BUILD="839" +VERSION_BUILD="840" # $Log$ # +# BUILD : 1.7.10 (840) +# BUGS : +# NOTES : Fixed most core compile warnings when using make strict +# # BUILD : 1.7.10 (839) # BUGS : # NOTES : Removed the requirement of a valid config file when running ./services -version |