summaryrefslogtreecommitdiff
path: root/src/channels.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/channels.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/channels.c')
-rw-r--r--src/channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.c b/src/channels.c
index 1d4359376..41909c1ba 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -596,7 +596,7 @@ void do_join(const char *source, int ac, char **av)
* av[2] = reason
*/
-void do_kick(const char *source, int ac, char **av)
+void do_kick(const char *source, int ac, const char **av)
{
BotInfo *bi;
ChannelInfo *ci;
@@ -604,7 +604,7 @@ void do_kick(const char *source, int ac, char **av)
char *s, *t;
struct u_chanlist *c;
- t = av[1];
+ t = (char *)av[1]; // XXX unsafe cast, this needs reviewing -- w00t
while (*(s = t)) {
t = s + strcspn(s, ",");
if (*t)