summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ivy/BufferedSocket.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx
index cae2404..11eecf5 100644
--- a/Ivy/BufferedSocket.cxx
+++ b/Ivy/BufferedSocket.cxx
@@ -34,11 +34,11 @@ void CBufferedSocket::OnReceive(int nErrorCode)
{
char *ptr_sep;
char *ptr;
- long nb_to_read = 0;
- long nb;
+ size_t nb_to_read = 0;
+ size_t nb;
SOCKADDR addr;
- int len = sizeof( addr );
+ size_t len = sizeof( addr );
/* limitation taille buffer */
nb_to_read = buffer_size - (current_ptr - buffer );
@@ -117,8 +117,8 @@ void CBufferedSocket::OnSend( int nErrorCode )
{
// TRACE("CBufferedSocket::OnSend Sending buffer %s\n",msg.c_str());
- int lg = msg.length();
- int sent = CThreadedSocket::Send( msg.c_str(), lg );
+ size_t lg = msg.length();
+ size_t sent = CThreadedSocket::Send( msg.c_str(), lg );
if ( sent == lg )
{ // emission correcte on enleve le msg de la file
EnterCriticalSection( &m_CritSection );