summaryrefslogtreecommitdiff
path: root/src/memoserv.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-19 23:13:30 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-19 23:13:30 +0000
commit6ce5c90619491440fc68f011c372feaaaf9d66dc (patch)
tree8e27c7a340a01d6c8cc13229369aabdb50a76d8b /src/memoserv.c
parent6c62e3968051283b73aa817966058906f28f289e (diff)
Add a few items to outstanding issues in TODO, clean up a lot of warnings (not all, some require more widespread changes than this), and fix a few potential bugs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2457 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/memoserv.c')
-rw-r--r--src/memoserv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memoserv.c b/src/memoserv.c
index 7af1b0c18..aef802bc3 100644
--- a/src/memoserv.c
+++ b/src/memoserv.c
@@ -81,7 +81,7 @@ void memoserv(User * u, char *buf)
void check_memos(User * u)
{
NickCore *nc;
- int i, newcnt = 0;
+ unsigned i, newcnt = 0;
if (!u) {
if (debug) {
@@ -254,7 +254,7 @@ void memo_send(User * u, const char *name, const char *text, int z)
if (mi->memos.size() > 1) {
m->number = mi->memos[mi->memos.size() - 2]->number + 1;
if (m->number < 1) {
- int i;
+ unsigned i;
for (i = 0; i < mi->memos.size(); i++) {
mi->memos[i]->number = i + 1;
}
@@ -333,7 +333,7 @@ void memo_send(User * u, const char *name, const char *text, int z)
*/
int delmemo(MemoInfo * mi, int num)
{
- int i;
+ unsigned i;
if (mi->memos.empty()) return 0;
for (i = 0; i < mi->memos.size(); i++) {