summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 18:05:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 18:05:44 +0000
commit58e4aa3a8c0ac57ee2336883077cf5b0aff77c9c (patch)
treec2cc2f862ea2ca7fcc12843413570ef983005f8d
parent2ab88037d8d7d6df3fb9686216a0b36f5ece2313 (diff)
Pedantic safety
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8350 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/users.h2
-rw-r--r--src/command_parse.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h
index 1f3e4a5aa..43145ab2f 100644
--- a/include/users.h
+++ b/include/users.h
@@ -596,7 +596,7 @@ class CoreExport User : public connection
/** Flood counters - lines received
*/
- int lines_in;
+ unsigned int lines_in;
/** Flood counters - time lines_in is due to be reset
*/
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 0c3f29a25..d63e3938f 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -219,7 +219,7 @@ CmdResult CommandParser::CallHandler(const std::string &commandname,const char**
void CommandParser::DoLines(User* current, bool one_only)
{
// while there are complete lines to process...
- int floodlines = 0;
+ unsigned int floodlines = 0;
while (current->BufferIsReady())
{