Fixed Linux build.

This commit is contained in:
lotodore
2008-02-24 13:14:04 +00:00
parent 7283431c8c
commit 89170ca190
+1 -1
View File
@@ -184,7 +184,7 @@ ServerAcceptThread::AcceptLoop()
}
// Retrieve peer address.
int addrLen = tmpData->GetPeerAddrSize();
socklen_t addrLen = (socklen_t)tmpData->GetPeerAddrSize();
if (getpeername(tmpData->GetSocket(), tmpData->GetPeerAddr(), &addrLen) != 0)
{
// Something went wrong with the connection, just continue (socket will be closed).