summaryrefslogtreecommitdiffstats
path: root/Tools/ProtoProxy/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-17 13:15:54 +0100
committermadmaxoft <github@xoft.cz>2014-01-17 13:15:54 +0100
commit1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7 (patch)
treec8944232bb7067e4e290f5c7074408a7dbebe6f3 /Tools/ProtoProxy/Server.cpp
parentProtoProxy: Fixed inversed typedef. (diff)
downloadcuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar.gz
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar.bz2
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar.lz
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar.xz
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.tar.zst
cuberite-1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7.zip
Diffstat (limited to 'Tools/ProtoProxy/Server.cpp')
-rw-r--r--Tools/ProtoProxy/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp
index aa5b74a2a..71b5ecb94 100644
--- a/Tools/ProtoProxy/Server.cpp
+++ b/Tools/ProtoProxy/Server.cpp
@@ -66,11 +66,11 @@ void cServer::Run(void)
{
sockaddr_in Addr;
memset(&Addr, 0, sizeof(Addr));
- int AddrSize = sizeof(Addr);
+ socklen_t AddrSize = sizeof(Addr);
SOCKET client = accept(m_ListenSocket, (sockaddr *)&Addr, &AddrSize);
if (client == INVALID_SOCKET)
{
- printf("accept returned an error: %d; bailing out.\n", WSAGetLastError());
+ printf("accept returned an error: %d; bailing out.\n", SocketError);
return;
}
printf("Client connected, proxying...\n");