summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79367f9)
raw | patch | inline | side by side (parent: 79367f9)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 7 Apr 2009 07:35:36 +0000 (09:35 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 7 Apr 2009 07:35:36 +0000 (09:35 +0200) |
The types passed at VM creation time differ from Java implementation to the
next and/or only certain compiler complain. This way we should be on the safe
side.
next and/or only certain compiler complain. This way we should be on the safe
side.
src/java.c | patch | blob | history |
diff --git a/src/java.c b/src/java.c
index 903b4a5bbce938e40d32a23cd6de6b8627e99467..20523f90b464f674b27b59944ac97edd81fa34af 100644 (file)
--- a/src/java.c
+++ b/src/java.c
vm_args.options[i].optionString = jvm_argv[i];
}
- status = JNI_CreateJavaVM (&jvm, (void **) &jvm_env, (void **) &vm_args);
+ status = JNI_CreateJavaVM (&jvm, (void *) &jvm_env, (void *) &vm_args);
if (status != 0)
{
ERROR ("java plugin: cjni_create_jvm: "
memset (&args, 0, sizeof (args));
args.version = JNI_VERSION_1_2;
- status = (*jvm)->AttachCurrentThread (jvm, (void **) &jvm_env, &args);
+ status = (*jvm)->AttachCurrentThread (jvm, (void *) &jvm_env, &args);
if (status != 0)
{
ERROR ("java plugin: cjni_shutdown: AttachCurrentThread failed with status %i.",