diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-01 12:26:43 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-01 12:26:43 +0000 |
commit | f2ed3ecc8b66de929e0beeecfb2fc81f81201509 (patch) | |
tree | 7333ec2926c63b2ae806cf0e299b7261c1c8b101 /modules.c | |
parent | cd24c74e8d1493eae69686e9ff1e5aae0b80bf8b (diff) |
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
Diffstat (limited to 'modules.c')
-rw-r--r-- | modules.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) |