summaryrefslogtreecommitdiff
path: root/src/news.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-03 17:37:45 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-03 17:37:45 +0000
commitf09953561bebb310cfe6a534c1262d77433a4e42 (patch)
treef1c3f89d74931b5f191212a73c1513d19803ee0d /src/news.c
parent69ed36bbf5a6aebc34a5a86946398083a45ab981 (diff)
Merge commit 'cbx/anopeng-charfix' into anopeng
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1408 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/news.c')
-rw-r--r--src/news.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news.c b/src/news.c
index 92ffa1910..3fffee433 100644
--- a/src/news.c
+++ b/src/news.c
@@ -42,7 +42,7 @@ NewsItem *news = NULL;
struct newsmsgs {
int16 type;
- char *name;
+ const char *name;
int msgs[MSG_MAX + 1];
};
@@ -91,7 +91,7 @@ struct newsmsgs msgarray[] = {
}
};
-static int *findmsgs(int16 type, char **type_name)
+static int *findmsgs(int16 type, const char **type_name)
{
int i;
for (i = 0; i < lenof(msgarray); i++) {
@@ -362,7 +362,7 @@ void do_news(User * u, short type)
{
int is_servadmin = is_services_admin(u);
char *cmd = strtok(NULL, " ");
- char *type_name;
+ const char *type_name;
int *msgs;
msgs = findmsgs(type, &type_name);