diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-06-02 03:39:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-06-02 03:39:48 +0000 |
commit | 2dcc6500908c3977f085a38046f36d6bb323840d (patch) | |
tree | 144755ae88a287fbb90aefd61f0cb5104ac480d6 | |
parent | b938e2e454a686be1a749b665763d3adee7062a0 (diff) |
Fixed warnings reported by vincent
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1589 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |