diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-05-28 19:36:42 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-05-28 19:36:42 +0000 |
commit | 2ffe517733e5203adb25f27706fd0c69dba2f710 (patch) | |
tree | 8a81fa50fc42b3eb454e40079bba24796b212b66 /ACE/ace/OS_NS_unistd.cpp | |
parent | d955f87d77751fd9fdeeaaabb3e6f921c45bc697 (diff) | |
download | ATCD-2ffe517733e5203adb25f27706fd0c69dba2f710.tar.gz |
Mon May 28 19:35:55 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/OS_NS_unistd.cpp')
-rw-r--r-- | ACE/ace/OS_NS_unistd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/OS_NS_unistd.cpp b/ACE/ace/OS_NS_unistd.cpp index d7496463d29..4ad3d24741d 100644 --- a/ACE/ace/OS_NS_unistd.cpp +++ b/ACE/ace/OS_NS_unistd.cpp @@ -660,9 +660,9 @@ ACE_OS::pwrite (ACE_HANDLE handle, if (altered_position == -1) return -1; - ssize_t bytes_written = ACE_OS::write (handle, - buf, - nbytes); + ssize_t const bytes_written = ACE_OS::write (handle, + buf, + nbytes); if (bytes_written == -1) return -1; @@ -827,7 +827,7 @@ ACE_OS::write_n (ACE_HANDLE handle, bytes_transferred += n) { n = ACE_OS::write (handle, - (char *) buf + bytes_transferred, + (char *) buf + bytes_transferred, len - bytes_transferred); if (n == -1 || n == 0) |