You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/06/27 09:33:36 UTC
svn commit: r1140034 - in /commons/sandbox/runtime/trunk/src/main/native:
include/acr/descriptor.h shared/descriptor.c
Author: mturk
Date: Mon Jun 27 07:33:35 2011
New Revision: 1140034
URL: http://svn.apache.org/viewvc?rev=1140034&view=rev
Log:
Cast to be acr_fd_t
Modified:
commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h
commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h?rev=1140034&r1=1140033&r2=1140034&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/descriptor.h Mon Jun 27 07:33:35 2011
@@ -41,7 +41,7 @@ struct acr_fd_t {
extern "C" {
#endif
-void *
+acr_fd_t *
AcrGetDescriptorFd(JNI_STDARGS);
int
AcrSetDescriptorFd(JNI_STDARGS, void *fd);
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c?rev=1140034&r1=1140033&r2=1140034&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c Mon Jun 27 07:33:35 2011
@@ -50,7 +50,7 @@ ACR_IO_EXPORT(void, Descriptor, init0)(J
_clazzn.u = 1;
}
-void *
+acr_fd_t *
AcrGetDescriptorFp(JNI_STDARGS)
{
jlong fp = 0;
@@ -65,7 +65,7 @@ AcrGetDescriptorFp(JNI_STDARGS)
else if (CLAZZ_LOADED) {
fp = GET_IFIELD_J(0000, obj);
}
- return J2P(fp, void *);
+ return J2P(fp, acr_fd_t *);
}
int