From 58e4aa3a8c0ac57ee2336883077cf5b0aff77c9c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 24 Oct 2007 18:05:44 +0000 Subject: Pedantic safety git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8350 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 2 +- src/command_parse.cpp | 2 +- 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()) { -- cgit v1.2.3