diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
commit | 29aea837f59c17fad0dc6020a488124f3ea7d630 (patch) | |
tree | 94701c01ec03db1a096e4f457fa9601891321ca7 /src/core/os_shutdown.c | |
parent | 1e918b949ce6d96b7f294f659d907546e5d60e44 (diff) |
Various strict fixes..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1185 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/os_shutdown.c')
-rw-r--r-- | src/core/os_shutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/os_shutdown.c b/src/core/os_shutdown.c index 2031462b8..e9be72cff 100644 --- a/src/core/os_shutdown.c +++ b/src/core/os_shutdown.c @@ -68,11 +68,11 @@ void myOperServHelp(User * u) **/ int do_shutdown(User * u) { - quitmsg = calloc(32 + strlen(u->nick), 1); + quitmsg = (char *)calloc(32 + strlen(u->nick), 1); if (!quitmsg) quitmsg = "SHUTDOWN command received, but out of memory!"; else - sprintf(quitmsg, "SHUTDOWN command received from %s", u->nick); + sprintf((char *)quitmsg, /* XXX */ "SHUTDOWN command received from %s", u->nick); if (GlobalOnCycle) { oper_global(NULL, "%s", GlobalOnCycleMessage); |