From 6ce5c90619491440fc68f011c372feaaaf9d66dc Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 19 Aug 2009 23:13:30 +0000 Subject: 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 --- src/memoserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/memoserv.c') 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++) { -- cgit