From e12692293aff763e9fdc856dc9a744acb52b971a Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 7 Jan 2011 06:28:42 +0000 Subject: [PATCH] - cleanup a compiler warning --- source/shared_lib/sources/platform/posix/socket.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index c9d19397f..b610edd63 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -2048,17 +2048,10 @@ void UPNP_Tools::NETaddRedirects(std::vector UPNPPortForwardList) { throw runtime_error("UPNPPortForwardList.size() MUST BE divisable by 2"); } - for(int clientIndex = 0; clientIndex < UPNPPortForwardList.size(); clientIndex += 2) { + for(unsigned int clientIndex = 0; clientIndex < UPNPPortForwardList.size(); clientIndex += 2) { int ports[2] = { UPNPPortForwardList[clientIndex], UPNPPortForwardList[clientIndex+1] }; upnp_add_redirect(ports); } - -/* - int portsA[2] = { ports[0], ports[1] }; - upnp_add_redirect(portsA); - int portsB[2] = { ports[2], ports[3] }; - upnp_add_redirect(portsB); -*/ } void UPNP_Tools::NETremRedirects(int ext_port) {