From c00c2f8af64bfe178af593355b20c20008cf0385 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 18 Feb 2018 17:23:07 +0200 Subject: Use JNI_OK --- src/fakejvm/jvm.c | 10 +++++----- 1 file 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 -- cgit v1.2.3-70-g09d2