From b6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 00:58:31 +0000 Subject: Major code tidyup (-W) - expect a few belches git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 78cc2553d..a68b6e9b8 100644 --- a/include/modules.h +++ b/include/modules.h @@ -76,7 +76,7 @@ typedef std::deque chanuserlist; // loaded modules in a readable simple way, e.g.: // 'FOREACH_MOD OnConnect(user);' -#define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define FOREACH_MOD for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]-> // This define is similar to the one above but returns a result in MOD_RESULT. // The first module to return a nonzero result is the value to be accepted, @@ -85,8 +85,8 @@ typedef std::deque chanuserlist; // ********************************************************************************************* #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ - for (int i = 0; i <= MODCOUNT; i++) { \ - int res = modules[i]->x ; \ + for (int _i = 0; _i <= MODCOUNT; _i++) { \ + int res = modules[_i]->x ; \ if (res != 0) { \ MOD_RESULT = res; \ break; \ -- cgit v1.2.3