summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-20 04:18:44 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-20 04:18:44 +0000
commit90228e81bcd60c4ed6fce4ad9e6af07699dc752a (patch)
treee612b0f0057481dce220d9cf352e54e50714e500 /src
parent086424f523ec5053572aa0e07f43d334d23c4e37 (diff)
BUILD : 1.7.6 (492) BUGS : N/A NOTES : Some gcc2 errors fixed
git-svn-id: svn://svn.anope.org/anope/trunk@492 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@346 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/news.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/news.c b/src/news.c
index af3375c34..f303d5509 100644
--- a/src/news.c
+++ b/src/news.c
@@ -422,6 +422,7 @@ static void do_news_add(User * u, int16 type, int *msgs,
const char *typename)
{
char *text = strtok(NULL, "");
+ int n;
if (!text) {
char buf[32];
@@ -432,7 +433,7 @@ static void do_news_add(User * u, int16 type, int *msgs,
notice_lang(s_OperServ, u, READ_ONLY_MODE);
return;
}
- int n = add_newsitem(u, text, type);
+ n = add_newsitem(u, text, type);
if (n < 0)
notice_lang(s_OperServ, u, msgs[MSG_ADD_FULL]);
else
@@ -483,7 +484,7 @@ static void do_news_del(User * u, int16 type, int *msgs,
const char *typename)
{
char *text = strtok(NULL, " ");
- int i;
+ int i, num;
if (!text) {
char buf[32];
@@ -495,7 +496,7 @@ static void do_news_del(User * u, int16 type, int *msgs,
return;
}
if (stricmp(text, "ALL") != 0) {
- int num = atoi(text);
+ num = atoi(text);
if (num > 0 && del_newsitem(num, type)) {
notice_lang(s_OperServ, u, msgs[MSG_DELETED], num);
/* Reset the order - #0000397 */