summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:51:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:51:20 +0000
commit9d4bf3e5262dc8b075e22a04fb9961de0b86a010 (patch)
tree4cee8a478f2bdfadcb00ed8668dba0cb59e365b6 /src
parentb64108b949c84da62e2c3e7eb2a862f58bcbcb22 (diff)
GCC4.x -Wall fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1572 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp4
-rw-r--r--src/inspircd.cpp1
2 files changed, 3 insertions, 2 deletions
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;
}