mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user