From 8f7d880d0ba747ae31e70476dbf7606df9da5a91 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Aug 2006 08:50:02 +0000 Subject: free() REQUIRES casts to free const char*'s :< git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4922 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 61c0abaa3..400ec098e 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -185,8 +185,9 @@ class ModuleTimedBans : public Module Event rmode((char *)&n, NULL, "send_mode"); rmode.Send(ServerInstance); DELETE(temp); - free(setban[0]); - free(setban[2]); + // i hate free. + free((char*)setban[0]); + free((char*)setban[2]); } else { -- cgit v1.2.3