From 2793615c50e9f072b0cf38897c7f3b17a7ac8c9f Mon Sep 17 00:00:00 2001 From: Ankur Date: Wed, 24 Dec 2014 17:37:22 +0530 Subject: [PATCH] Removed compiler warning - comparison between signed and unsigned integers -The signed variables were positive the whole time. So, converted them from ssize_t to size_t Change-Id: I743cd86f864ac22820951302679f2889e42e11b9 --- src/shared/csocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/csocket.cpp b/src/shared/csocket.cpp index 63eaa47..67c7642 100755 --- a/src/shared/csocket.cpp +++ b/src/shared/csocket.cpp @@ -212,7 +212,7 @@ ssize_t csocket::send_for_stream(void const* buffer, size_t size) const { ssize_t len; ssize_t err = 0; - ssize_t total_sent_size = 0; + size_t total_sent_size = 0; do { len = ::send(m_sock_fd, buffer + total_sent_size, size - total_sent_size, m_send_flags); @@ -239,7 +239,7 @@ ssize_t csocket::recv_for_stream(void* buffer, size_t size) const { ssize_t len; ssize_t err = 0; - ssize_t total_recv_size = 0; + size_t total_recv_size = 0; do { len = ::recv(m_sock_fd, buffer + total_recv_size, size - total_recv_size, m_recv_flags); -- 2.7.4