summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-10 16:19:14 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-10 16:19:14 +0000
commit5fa7167181516ee764cbe6f609a6b3ad75989124 (patch)
tree4764489c3a35387015014b8e3d5e87e4bc0d4d78 /src
parentfe39b96db7735ceb243f1f09e3d41633d803445f (diff)
Fix a few (easy) compile errors.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1978 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_suspend.c10
-rw-r--r--src/core/cs_topic.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/cs_suspend.c b/src/core/cs_suspend.c
index c17a19f02..43fab316c 100644
--- a/src/core/cs_suspend.c
+++ b/src/core/cs_suspend.c
@@ -27,8 +27,8 @@ class CommandCSSuspend : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
ChannelInfo *ci;
- char *chan = params[0].c_str();
- char *reason = params.size() > 1 ? params[1].c_str() : NULL;
+ const char *chan = params[0].c_str();
+ const char *reason = params.size() > 1 ? params[1].c_str() : NULL;
Channel *c;
@@ -71,12 +71,12 @@ class CommandCSSuspend : public Command
if ((c = findchan(ci->name)))
{
- struct c_userlist *cu, *next;
+ struct c_userlist *cu, *nextu;
const char *av[3];
- for (cu = c->users; cu; cu = next)
+ for (cu = c->users; cu; cu = nextu)
{
- next = cu->next;
+ nextu = cu->next;
if (is_oper(cu->user))
continue;
diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c
index 622fa8b52..0f4be3a0e 100644
--- a/src/core/cs_topic.c
+++ b/src/core/cs_topic.c
@@ -26,8 +26,8 @@ class CommandCSTopic : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- char *chan = params[0].c_str();
- char *topic = params.size() > 1 ? params[1].c_str() : NULL;
+ const char *chan = params[0].c_str();
+ const char *topic = params.size() > 1 ? params[1].c_str() : NULL;
Channel *c;
ChannelInfo *ci;