From f2ed3ecc8b66de929e0beeecfb2fc81f81201509 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 1 May 2004 12:26:43 +0000 Subject: [PATCH] BUILD : 1.7.2 (77) BUGS : Compile errors on picky compilers NOTES : fixed a compile error on picky compilers git-svn-id: svn://svn.anope.org/anope/trunk@77 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@53 5417fbe8-f217-4b02-8779-1006273d7864 --- modules.c | 9 ++++----- version.log | 6 +++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules.c b/modules.c index ca3e422ad..4e65495d9 100644 --- a/modules.c +++ b/modules.c @@ -1757,13 +1757,13 @@ int moduleAddData(ModuleData * md[], char *key, char *value) char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *newHash = NULL; ModuleData *lastHash = NULL; ModuleDataItem *item = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *lastItem = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1828,11 +1828,10 @@ char *moduleGetData(ModuleData * md[], char *key) char *mod_name = sstrdup(mod_current_module_name); int index = 0; char *ret = NULL; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; - ModuleDataItem *itemCurrent = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1861,13 +1860,13 @@ void moduleDelData(ModuleData * md[], char *key) { char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *prev = NULL; ModuleDataItem *next = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1904,13 +1903,13 @@ void moduleDelAllData(ModuleData * md[]) { char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *prev = NULL; ModuleDataItem *next = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) diff --git a/version.log b/version.log index 09b8c1157..80d06bffe 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="2" -VERSION_BUILD="76" +VERSION_BUILD="77" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.2 (77) +# BUGS : Compile errors on picky compilers +# NOTES : fixed a compile error on picky compilers +# # BUILD : 1.7.2 (76) # BUGS : # NOTES : Added memoserv function to check whether the last memo you sent to a nick has been read or not. new cmd: /MS CHECK