diff options
-rw-r--r-- | src/news.c | 7 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 9 insertions, 4 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 */ diff --git a/version.log b/version.log index a06dfb183..b5e99d16a 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="6" -VERSION_BUILD="491" +VERSION_BUILD="492" # $Log$ # +# BUILD : 1.7.6 (492) +# BUGS : N/A +# NOTES : Some gcc2 errors fixed +# # BUILD : 1.7.6 (491) # BUGS : N/A # NOTES : Forgot to update the change log |