From 9d4bf3e5262dc8b075e22a04fb9961de0b86a010 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 May 2005 22:51:20 +0000 Subject: GCC4.x -Wall fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1572 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index e96825f75..4bd237e37 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -122,7 +122,7 @@ void ircd_connector::SetServerPort(int p) bool ircd_connector::AddBuffer(std::string a) { std::string b = ""; - for (int i = 0; i < a.length(); i++) + for (unsigned int i = 0; i < a.length(); i++) if (a[i] != '\r') b = b + a[i]; @@ -135,7 +135,7 @@ bool ircd_connector::AddBuffer(std::string a) bool ircd_connector::BufferIsComplete() { - for (int i = 0; i < ircdbuffer.length(); i++) + for (unsigned int i = 0; i < ircdbuffer.length(); i++) if (ircdbuffer[i] == '\n') return true; return false; -- cgit v1.3.1-10-gc9f91