summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_unistd.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-05-28 19:36:42 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-05-28 19:36:42 +0000
commit2ffe517733e5203adb25f27706fd0c69dba2f710 (patch)
tree8a81fa50fc42b3eb454e40079bba24796b212b66 /ACE/ace/OS_NS_unistd.cpp
parentd955f87d77751fd9fdeeaaabb3e6f921c45bc697 (diff)
downloadATCD-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.cpp8
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)