From e10fe1cd767cf479837eecc1e1b26615d63ea5ac Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 17 Nov 2009 04:04:24 +0000 Subject: 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 --- src/core/os_akill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/os_akill.c') diff --git a/src/core/os_akill.c b/src/core/os_akill.c index d7f2cddbd..32169e2d4 100644 --- a/src/core/os_akill.c +++ b/src/core/os_akill.c @@ -176,7 +176,7 @@ class CommandOSAKill : public Command } else { - if ((res = slist_indexof(&akills, (void *)mask)) == -1) + if ((res = slist_indexof(&akills, const_cast(static_cast(mask)))) == -1) // XXX: possibly unsafe cast { notice_lang(s_OperServ, u, OPER_AKILL_NOT_FOUND, mask); return MOD_CONT; -- cgit