summaryrefslogtreecommitdiff
path: root/src/core/cs_akick.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
commit06f53a85821be6c7d276e2ee5721163d469af784 (patch)
tree4b0ab9c092d2a4d90f6a74d2e4ca9dfb0620d826 /src/core/cs_akick.c
parentaa806eba53a7ccc715839bd972c9b158f39b6225 (diff)
Various constification/fixes for g++.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1183 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_akick.c')
-rw-r--r--src/core/cs_akick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index 14014e054..672d329a6 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -220,7 +220,7 @@ int do_akick(User * u)
if (!na) {
split_usermask(mask, &nick, &user, &host);
mask =
- scalloc(strlen(nick) + strlen(user) + strlen(host) + 3, 1);
+ (char *)scalloc(strlen(nick) + strlen(user) + strlen(host) + 3, 1);
freemask = 1;
sprintf(mask, "%s!%s@%s", nick, user, host);
free(nick);
@@ -313,7 +313,7 @@ int do_akick(User * u)
}
ci->akickcount++;
ci->akick =
- srealloc(ci->akick, sizeof(AutoKick) * ci->akickcount);
+ (AutoKick *)srealloc(ci->akick, sizeof(AutoKick) * ci->akickcount);
akick = &ci->akick[i];
akick->flags = AK_USED;
if (nc) {
@@ -532,7 +532,7 @@ int do_akick(User * u)
ci->akickcount--;
}
ci->akick =
- srealloc(ci->akick,sizeof(AutoKick) * ci->akickcount);
+ (AutoKick *)srealloc(ci->akick,sizeof(AutoKick) * ci->akickcount);
}
} else if (stricmp(cmd, "LIST") == 0) {
int sent_header = 0;