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 | 1e918b949ce6d96b7f294f659d907546e5d60e44 (patch) | |
tree | d8c1ec8ee383d85a186117ef8980631e35250e7a /src/core/cs_xop.c | |
parent | 06f53a85821be6c7d276e2ee5721163d469af784 (diff) |
Various constification/g++ fixes..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1184 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_xop.c')
-rw-r--r-- | src/core/cs_xop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index 37d3711fd..fc06397ed 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -313,7 +313,7 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs) if (i < CSAccessMax) { ci->accesscount++; ci->access = - srealloc(ci->access, + (ChanAccess *)srealloc(ci->access, sizeof(ChanAccess) * ci->accesscount); } else { notice_lang(s_ChanServ, u, CHAN_XOP_REACHED_LIMIT, @@ -446,7 +446,7 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs) ci->accesscount--; } ci->access = - srealloc(ci->access,sizeof(ChanAccess) * ci->accesscount); + (ChanAccess *)srealloc(ci->access,sizeof(ChanAccess) * ci->accesscount); } } else if (stricmp(cmd, "LIST") == 0) { int sent_header = 0; |