commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r820707 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c
Date Thu, 01 Oct 2009 16:31:52 GMT
Author: mturk
Date: Thu Oct  1 16:31:52 2009
New Revision: 820707

URL: http://svn.apache.org/viewvc?rev=820707&view=rev
Log:
Cast to iovec types

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c?rev=820707&r1=820706&r2=820707&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c Thu Oct  1 16:31:52 2009
@@ -1132,7 +1132,7 @@
     for (i = 0; i < cs; i++) {
         boa[i] = (*_E)->GetObjectArrayElement(_E, vec, (jsize)(i + po));
         iov[i].iov_len  = (size_t)(*_E)->GetArrayLength(_E, boa[i]);
-        iov[i].iov_base = (*_E)->GetByteArrayElements(_E, boa[i], NULL);
+        iov[i].iov_base = (void *)(*_E)->GetByteArrayElements(_E, boa[i], NULL);
     }
     do {
         wr = writev(f->fd, iov, pl);
@@ -1151,7 +1151,8 @@
             rc = ACR_TIMEUP;
     }
     for (i = 0; i < cs; i++) {
-        (*_E)->ReleaseByteArrayElements(_E, boa[i], iov[i].iov_base, JNI_ABORT);
+        (*_E)->ReleaseByteArrayElements(_E, boa[i], (jbyte *)iov[i].iov_base,
+                                        JNI_ABORT);
     }
     if (iov != onstack) {
         x_free(iov);



Mime
View raw message