diff options
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) |