From 2dcc6500908c3977f085a38046f36d6bb323840d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 2 Jun 2005 03:39:48 +0000 Subject: Fixed warnings reported by vincent git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1589 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index d580b79e1..1f45965fb 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2876,6 +2876,8 @@ int InspIRCd(char** argv, int argc) int total_in_this_set = 0; int i = 0, v = 0, j = 0, cycle_iter = 0; bool expire_run = false; + + cycle_iter = i = j = 0; // stop the compiler whining - these may be marked unused in certain socket engine types /* main loop, this never returns */ for (;;) @@ -3088,7 +3090,7 @@ int InspIRCd(char** argv, int argc) // registration timeout -- didnt send USER/NICK/HOST in the time specified in // their connection class. - if ((TIME > curr->timeout) && (curr->registered != 7)) + if ((TIME > (unsigned)curr->timeout) && (curr->registered != 7)) { log(DEBUG,"InspIRCd: registration timeout: %s",curr->nick); kill_link(curr,"Registration timeout"); -- cgit v1.2.3