From a022a1d94a2bd3d62aa1a5dc092333c52a0912f5 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Fri, 20 Mar 2009 15:25:59 +0100 Subject: [PATCH] Upstream tarball 9528 --- .svn-revision | 2 +- src/kademlia/kademlia/Prefs.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.svn-revision b/.svn-revision index 5ec91ee4..a0266ff5 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -9527 +9528 diff --git a/src/kademlia/kademlia/Prefs.cpp b/src/kademlia/kademlia/Prefs.cpp index e56d7480..186ff869 100644 --- a/src/kademlia/kademlia/Prefs.cpp +++ b/src/kademlia/kademlia/Prefs.cpp @@ -287,7 +287,7 @@ float CPrefs::StatsGetKadV8Ratio() void CPrefs::SetExternKadPort(uint16_t port, uint32_t fromIP) { if (FindExternKadPort(false)) { - for (int i = 0; i < m_externPortIPs.size(); i++) { + for (unsigned i = 0; i < m_externPortIPs.size(); i++) { if (m_externPortIPs[i] == fromIP) { return; } @@ -295,7 +295,7 @@ void CPrefs::SetExternKadPort(uint16_t port, uint32_t fromIP) m_externPortIPs.push_back(fromIP); AddDebugLogLineM(false, logKadPrefs, wxString::Format(wxT("Received possible external Kad port %u from "), port) + Uint32toStringIP(wxUINT32_SWAP_ALWAYS(fromIP))); // if 2 out of 3 tries result in the same external port it's fine, otherwise consider it unreliable - for (int i = 0; i < m_externPorts.size(); i++) { + for (unsigned i = 0; i < m_externPorts.size(); i++) { if (m_externPorts[i] == port) { m_externKadPort = port; AddDebugLogLineM(false, logKadPrefs, wxString::Format(wxT("Set external Kad port to %u"), port)); -- 2.11.4.GIT