summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}