ca/legacy/pcas: fix compiler warnings (different signedness in comparison)
This commit is contained in:
@@ -505,7 +505,7 @@ bufSizeT casDGIntfIO ::
|
||||
osSendBufferSize () const
|
||||
{
|
||||
/* fetch the TCP send buffer size */
|
||||
int size = MAX_UDP_SEND;
|
||||
unsigned int size = MAX_UDP_SEND;
|
||||
osiSocklen_t n = sizeof ( size );
|
||||
int status = getsockopt( this->sock, SOL_SOCKET, SO_SNDBUF,
|
||||
reinterpret_cast < char * > ( & size ), & n );
|
||||
|
||||
@@ -97,7 +97,7 @@ casStreamIO::casStreamIO ( caServerI & cas, clientBufMemoryManager & bufMgr,
|
||||
#endif
|
||||
|
||||
/* cache the TCP send buffer size */
|
||||
int size = MAX_TCP;
|
||||
unsigned int size = MAX_TCP;
|
||||
osiSocklen_t n = sizeof ( size ) ;
|
||||
status = getsockopt ( this->sock, SOL_SOCKET,
|
||||
SO_SNDBUF, reinterpret_cast < char * > ( & size ), & n );
|
||||
|
||||
Reference in New Issue
Block a user