summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:36:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:36:08 +0000
commitf96ddd39748f283768217fb1a3cdd3a7cbde353a (patch)
tree12929cfa52dcd3de5871efe355168f762a3740eb /src/users.cpp
parent550f8bce1bf19ef186f27e574ea126113568d5e3 (diff)
Started on -Wall - safe compile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 60072ed0c..d4e87780c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -192,20 +192,20 @@ bool userrec::HasPermission(char* command)
bool userrec::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') && (a[i] != '\0') && (a[i] != 7))
b = b + a[i];
std::stringstream stream(recvq);
stream << b;
recvq = stream.str();
- int i = 0;
+ unsigned int i = 0;
// count the size of the first line in the buffer.
while (i < recvq.length())
{
if (recvq[i++] == '\n')
break;
}
- if (recvq.length() > this->recvqmax)
+ if (recvq.length() > (unsigned)this->recvqmax)
{
this->SetWriteError("RecvQ exceeded");
WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
@@ -217,7 +217,7 @@ bool userrec::AddBuffer(std::string a)
bool userrec::BufferIsReady()
{
- for (int i = 0; i < recvq.length(); i++)
+ for (unsigned int i = 0; i < recvq.length(); i++)
if (recvq[i] == '\n')
return true;
return false;
@@ -249,7 +249,7 @@ void userrec::AddWriteBuf(std::string data)
{
if (this->GetWriteError() != "")
return;
- if (sendq.length() + data.length() > this->sendqmax)
+ if (sendq.length() + data.length() > (unsigned)this->sendqmax)
{
WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
this->SetWriteError("SendQ exceeded");