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 ++-- src/inspircd.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 71ea723d5..70aa4326c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -3476,5 +3476,6 @@ int InspIRCd(char** argv, int argc) } /* not reached */ close (incomingSockfd); +return 0; } -- cgit v1.2.3