From: Florian Forster Date: Tue, 7 Apr 2009 07:35:36 +0000 (+0200) Subject: java plugin: Use `void *' to pass arguments of varying type. X-Git-Tag: collectd-4.7.0~80 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=317cd004e939b13c04073b1e0f8974f761047150 java plugin: Use `void *' to pass arguments of varying type. 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. --- diff --git a/src/java.c b/src/java.c index 903b4a5b..20523f90 100644 --- a/src/java.c +++ b/src/java.c @@ -1970,7 +1970,7 @@ static int cjni_create_jvm (void) /* {{{ */ 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: " @@ -2926,7 +2926,7 @@ static int cjni_shutdown (void) /* {{{ */ 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.",