summaryrefslogtreecommitdiff
path: root/src/operserv.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-17 04:04:24 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-17 04:04:24 +0000
commite10fe1cd767cf479837eecc1e1b26615d63ea5ac (patch)
treed1fbb79219d5598cd2370eb54f8a75aa5b9f25ef /src/operserv.c
parent88330c07adc5bb3b085cf6ede1d30c0c48afcfb6 (diff)
Removed some unnecessary casts, used C++-style casts over C-style casts, fixed a few warnings (one possibly fatal one).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2655 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/operserv.c')
-rw-r--r--src/operserv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/operserv.c b/src/operserv.c
index 4acedbbd9..a875769cd 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -51,7 +51,7 @@ bool SetDefConParam(ChannelModeName Name, std::string &buf)
bool GetDefConParam(ChannelModeName Name, std::string *buf)
{
std::map<ChannelModeName, std::string>::iterator it = DefConModesOnParams.find(Name);
-
+
buf->clear();
if (it != DefConModesOnParams.end())
@@ -1203,7 +1203,7 @@ static int is_szline_entry_equal(SList * slist, void *item1, void *item2)
bool CheckDefCon(DefconLevel Level)
{
if (DefConLevel)
- return DefCon[DefConLevel][(size_t)Level];
+ return DefCon[DefConLevel][Level];
return false;
}
@@ -1214,7 +1214,7 @@ bool CheckDefCon(DefconLevel Level)
*/
bool CheckDefCon(int level, DefconLevel Level)
{
- return DefCon[level][(size_t)Level];
+ return DefCon[level][Level];
}
/** Add a defcon level option to a defcon level
@@ -1223,7 +1223,7 @@ bool CheckDefCon(int level, DefconLevel Level)
*/
void AddDefCon(int level, DefconLevel Level)
{
- DefCon[level][(size_t)Level] = true;
+ DefCon[level][Level] = true;
}
/** Remove a defcon level option from a defcon level
@@ -1232,6 +1232,6 @@ void AddDefCon(int level, DefconLevel Level)
*/
void DelDefCon(int level, DefconLevel Level)
{
- DefCon[level][(size_t)Level] = false;
+ DefCon[level][Level] = false;
}