diff options
author | madmaxoft <github@xoft.cz> | 2014-01-17 13:15:54 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-17 13:15:54 +0100 |
commit | 1aeecdbe43fbcd839e3a4927bfad9a5d8ae5dad7 (patch) | |
tree | c8944232bb7067e4e290f5c7074408a7dbebe6f3 /Tools/ProtoProxy/Server.cpp | |
parent | ProtoProxy: Fixed inversed typedef. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | Tools/ProtoProxy/Server.cpp | 4 |
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"); |