summaryrefslogtreecommitdiff
path: root/ACE/ace/MEM_IO.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-01-25 18:58:54 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-01-25 18:58:54 +0000
commit495fe6b0e04e2b5b95646056da0c0120ca56b370 (patch)
tree6a737ca2d299c6032d26c83f86ae4d3591e6762b /ACE/ace/MEM_IO.cpp
parent2fcf3cfc1a66985347ace160c5bb512a652a6430 (diff)
downloadATCD-495fe6b0e04e2b5b95646056da0c0120ca56b370.tar.gz
Mon Jan 25 18:58:30 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/MEM_IO.cpp Added casts to fix CB2010 warnings
Diffstat (limited to 'ACE/ace/MEM_IO.cpp')
-rw-r--r--ACE/ace/MEM_IO.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ACE/ace/MEM_IO.cpp b/ACE/ace/MEM_IO.cpp
index 4fdbd50b72e..1b61ead04a7 100644
--- a/ACE/ace/MEM_IO.cpp
+++ b/ACE/ace/MEM_IO.cpp
@@ -54,7 +54,7 @@ ACE_Reactive_MEM_IO::recv_buf (ACE_MEM_SAP_Node *&buf,
buf = 0;
return 0;
}
- else if (retv != sizeof (ACE_OFF_T))
+ else if (retv != static_cast <ssize_t> (sizeof (ACE_OFF_T)))
{
// Nothing available or we are really screwed.
buf = 0;
@@ -75,26 +75,26 @@ ACE_Reactive_MEM_IO::send_buf (ACE_MEM_SAP_Node *buf,
{
return -1;
}
-
+
// The offset.
ACE_OFF_T offset =
ACE_Utils::truncate_cast<ACE_OFF_T> (
reinterpret_cast<char *> (buf)
- static_cast<char *> (this->shm_malloc_->base_addr ()));
-
+
// Send the offset value over the socket.
if (ACE::send (this->handle_,
(const char *) &offset,
sizeof (offset),
flags,
- timeout) != sizeof (offset))
+ timeout) != static_cast <ssize_t> (sizeof (offset)))
{
// unsucessful send, release the memory in the shared-memory.
this->release_buffer (buf);
return -1;
}
-
+
return ACE_Utils::truncate_cast<ssize_t> (buf->size ());
}