You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/10/15 11:58:34 UTC
svn commit: r584720 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
Author: hindessm
Date: Mon Oct 15 02:58:33 2007
New Revision: 584720
URL: http://svn.apache.org/viewvc?rev=584720&view=rev
Log:
Rename confusingly-named variable.
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c?rev=584720&r1=584719&r2=584720&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSFileSystemLinux32.c Mon Oct 15 02:58:33 2007
@@ -202,7 +202,7 @@
jint *offsets;
jint *lengths;
int i = 0;
- long totalRead = 0;
+ long totalWritten = 0;
struct iovec *vectors = (struct iovec *)hymem_allocate_memory(size * sizeof(struct iovec));
if(vectors == NULL){
return -1;
@@ -215,7 +215,7 @@
vectors[i].iov_len = lengths[i];
i++;
}
- totalRead = writev(fd, vectors, size);
+ totalWritten = writev(fd, vectors, size);
if(bufsCopied){
(*env)->ReleaseLongArrayElements(env, jbuffers, bufs, JNI_ABORT);
}
@@ -226,7 +226,7 @@
(*env)->ReleaseIntArrayElements(env, jlengths, lengths, JNI_ABORT);
}
hymem_free_memory(vectors);
- return totalRead;
+ return totalWritten;
}
/*