In 64bit environment, size_t may be 8bytes.
Change-Id: I1a6abfbe2eb52dfaa5165aef50ff72b1081119f2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
}
}
-int ClientSocket::Send(const void* buf, unsigned int size) {
+int ClientSocket::Send(const void* buf, size_t size) {
const unsigned char* buffer = static_cast<const unsigned char*>(buf);
size_t len = size;
int retry_cnt = MAX_RETRY_CNT;
return 0;
}
-int ClientSocket::Receive(void* buf, unsigned int size) {
+int ClientSocket::Receive(void* buf, size_t size) {
bool is_blocking;
if (fcntl(fd_, F_GETFL, 0) & O_NONBLOCK)
is_blocking = false;