summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-18 17:23:07 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-18 17:23:07 +0200
commitc00c2f8af64bfe178af593355b20c20008cf0385 (patch)
tree97dcd24f9e688c00300121f552bcbce0bd874f41
parentdef54828c0051869cacf042d1464ccd0e87e9c1a (diff)
Use JNI_OK
-rw-r--r--src/fakejvm/jvm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fakejvm/jvm.c b/src/fakejvm/jvm.c
index f7ba629..f322910 100644
--- a/src/fakejvm/jvm.c
+++ b/src/fakejvm/jvm.c
@@ -1735,34 +1735,34 @@ env_init(JNIEnv *env, struct JNINativeInterface *native)
static jint
JavaVM_DestroyJavaVM(JavaVM *vm)
{
- return 0;
+ return JNI_OK;
}
static jint
JavaVM_AttachCurrentThread(JavaVM *vm, JNIEnv **env, void *args)
{
*env = &javavm_get_jvm(vm)->env;
- return 0;
+ return JNI_OK;
}
static jint
JavaVM_DetachCurrentThread(JavaVM *vm)
{
- return 0;
+ return JNI_OK;
}
static jint
JavaVM_GetEnv(JavaVM *vm, void **env, jint version)
{
*env = &javavm_get_jvm(vm)->env;
- return 0;
+ return JNI_OK;
}
static jint
JavaVM_AttachCurrentThreadAsDaemon(JavaVM *vm, JNIEnv **env, void *args)
{
*env = &javavm_get_jvm(vm)->env;
- return 0;
+ return JNI_OK;
}
static void