diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
commit | ec9496bea543bd5ebb9214880c056b95446b6b13 (patch) | |
tree | f13a58e9814886bf7627a4f566caa7425bd61a25 /ACE/ace/MEM_IO.cpp | |
parent | d4ce64ef75457044ad7a9334f787d24fbb4c0a23 (diff) | |
download | ATCD-ec9496bea543bd5ebb9214880c056b95446b6b13.tar.gz |
ChangeLogTag:Thu Oct 27 01:59:19 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/ace/MEM_IO.cpp')
-rw-r--r-- | ACE/ace/MEM_IO.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/MEM_IO.cpp b/ACE/ace/MEM_IO.cpp index 7a9616f5220..96001b954c0 100644 --- a/ACE/ace/MEM_IO.cpp +++ b/ACE/ace/MEM_IO.cpp @@ -41,10 +41,10 @@ ACE_Reactive_MEM_IO::recv_buf (ACE_MEM_SAP_Node *&buf, if (this->shm_malloc_ == 0 || this->handle_ == ACE_INVALID_HANDLE) return -1; - off_t new_offset = 0; + ACE_OFF_T new_offset = 0; ssize_t retv = ACE::recv (this->handle_, (char *) &new_offset, - sizeof (off_t), + sizeof (ACE_OFF_T), flags, timeout); @@ -54,7 +54,7 @@ ACE_Reactive_MEM_IO::recv_buf (ACE_MEM_SAP_Node *&buf, buf = 0; return 0; } - else if (retv != sizeof (off_t)) + else if (retv != sizeof (ACE_OFF_T)) { // Nothing available or we are really screwed. buf = 0; @@ -74,7 +74,7 @@ ACE_Reactive_MEM_IO::send_buf (ACE_MEM_SAP_Node *buf, if (this->shm_malloc_ == 0 || this->handle_ == ACE_INVALID_HANDLE) return -1; - off_t offset = reinterpret_cast<char *> (buf) - + ACE_OFF_T offset = reinterpret_cast<char *> (buf) - static_cast<char *> (this->shm_malloc_->base_addr ()); // the offset. // Send the offset value over the socket. if (ACE::send (this->handle_, |