mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Use proper type.
This commit is contained in:
parent
d0d5184c04
commit
82dad3fb97
@ -152,10 +152,11 @@ int Socket::Send( const void* _buf, int len )
|
|||||||
int Socket::GetSendBufSize()
|
int Socket::GetSendBufSize()
|
||||||
{
|
{
|
||||||
int bufSize;
|
int bufSize;
|
||||||
int sz = sizeof( bufSize );
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
|
int sz = sizeof( bufSize );
|
||||||
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, (char*)&bufSize, &sz );
|
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, (char*)&bufSize, &sz );
|
||||||
#else
|
#else
|
||||||
|
socklen_t sz = sizeof( bufSize );
|
||||||
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, &bufSize, &sz );
|
getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, &bufSize, &sz );
|
||||||
#endif
|
#endif
|
||||||
return bufSize;
|
return bufSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user