*Massive cleanup redux.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 16:20:24 -07:00
parent e585187b24
commit 3f338cc1c3
862 changed files with 2736 additions and 4797 deletions
+6 -6
View File
@@ -129,7 +129,7 @@ ACE_MEM_IO::send (const void *buf,
const ACE_Time_Value *timeout)
{
ACE_TRACE ("ACE_MEM_IO::send");
if (this->deliver_strategy_ == 0)
{
return 0;
@@ -138,12 +138,12 @@ ACE_MEM_IO::send (const void *buf,
ACE_MEM_SAP_Node *sbuf =
this->deliver_strategy_->acquire_buffer (
ACE_Utils::truncate_cast<ssize_t> (len));
if (sbuf == 0)
{
return -1; // Memory buffer not initialized.
}
ACE_OS::memcpy (sbuf->data (), buf, len);
///
@@ -166,17 +166,17 @@ ACE_MEM_IO::recv (void *buf,
size_t count = 0;
size_t buf_len = this->buf_size_ - this->cur_offset_;
if (buf_len == 0)
{
ssize_t blen = // Buffer length
this->fetch_recv_buf (flags, timeout);
if (blen <= 0)
{
return blen;
}
buf_len = this->buf_size_;
}