ca/legacy/pcas: fix compiler warnings (different signedness in comparison)

This commit is contained in:
Ralph Lange
2014-02-16 19:29:58 +01:00
parent a3354f5db9
commit 6ad30c92bb
2 changed files with 2 additions and 2 deletions

View File

@@ -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 );

View File

@@ -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 );