Use proper type.

This commit is contained in:
Bartosz Taudul 2019-04-01 20:43:42 +02:00
parent d0d5184c04
commit 82dad3fb97

View File

@ -152,10 +152,11 @@ int Socket::Send( const void* _buf, int len )
int Socket::GetSendBufSize()
{
int bufSize;
int sz = sizeof( bufSize );
#if defined _WIN32 || defined __CYGWIN__
int sz = sizeof( bufSize );
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, (char*)&bufSize, &sz );
#else
socklen_t sz = sizeof( bufSize );
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, &bufSize, &sz );
#endif
return bufSize;