aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/net.cpp b/net.cpp
index d669b8c5e5..061f000a73 100644
--- a/net.cpp
+++ b/net.cpp
@@ -655,11 +655,7 @@ void ThreadSocketHandler2(void* parg)
if (FD_ISSET(hListenSocket, &fdsetRecv))
{
struct sockaddr_in sockaddr;
-#ifdef __WXMSW__
- int len = sizeof(sockaddr);
-#else
socklen_t len = sizeof(sockaddr);
-#endif
SOCKET hSocket = accept(hListenSocket, (struct sockaddr*)&sockaddr, &len);
CAddress addr(sockaddr);
if (hSocket == INVALID_SOCKET)