From 29aea837f59c17fad0dc6020a488124f3ea7d630 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:09 +0000 Subject: Various strict fixes.. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1185 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_quit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/os_quit.c') diff --git a/src/core/os_quit.c b/src/core/os_quit.c index 65fd31123..82da33434 100644 --- a/src/core/os_quit.c +++ b/src/core/os_quit.c @@ -68,11 +68,11 @@ void myOperServHelp(User * u) **/ int do_os_quit(User * u) { - quitmsg = calloc(28 + strlen(u->nick), 1); + quitmsg = (char *)calloc(28 + strlen(u->nick), 1); if (!quitmsg) quitmsg = "QUIT command received, but out of memory!"; else - sprintf(quitmsg, "QUIT command received from %s", u->nick); + sprintf((char *)quitmsg, "QUIT command received from %s", u->nick); // XXX we know this is safe, but.. if (GlobalOnCycle) { oper_global(NULL, "%s", GlobalOnCycleMessage); -- cgit