proper data type for socklen_t

This commit is contained in:
Jeff Hill
2009-07-25 01:14:55 +00:00
parent 31fb3775fd
commit 7d137254af
2 changed files with 2 additions and 2 deletions

View File

@@ -505,7 +505,7 @@ bufSizeT casDGIntfIO ::
{
/* fetch the TCP send buffer size */
int size = MAX_UDP_SEND;
int n = sizeof ( size );
osiSocklen_t n = sizeof ( size );
int status = getsockopt( this->sock, SOL_SOCKET, SO_SNDBUF,
reinterpret_cast < char * > ( & size ), & n );
if ( status < 0 || n != sizeof(size) ) {

View File

@@ -95,7 +95,7 @@ casStreamIO::casStreamIO ( caServerI & cas, clientBufMemoryManager & bufMgr,
/* cache the TCP send buffer size */
int size = MAX_TCP;
int n = sizeof ( size ) ;
osiSockLen_t n = sizeof ( size ) ;
status = getsockopt ( this->sock, SOL_SOCKET,
SO_SNDBUF, reinterpret_cast < char * > ( & size ), & n );
if ( status < 0 || n != sizeof ( size ) ) {