Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faa1033d authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks/base: Fix registration function

Registration functions return "int."

Change-Id: Icb8d35f3bc23794cdb22db1c1adda236c9d8676e
parent e4735a99
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -161,12 +161,14 @@ static JNINativeMethod gMethods[] = {
  NATIVE_METHOD(StrictJarFile, nativeClose, "(J)V"),
};

void register_android_util_jar_StrictJarFile(JNIEnv* env) {
int register_android_util_jar_StrictJarFile(JNIEnv* env) {
  jniRegisterNativeMethods(env, "android/util/jar/StrictJarFile", gMethods, NELEM(gMethods));

  zipEntryCtor = env->GetMethodID(JniConstants::zipEntryClass, "<init>",
      "(Ljava/lang/String;Ljava/lang/String;JJJII[BJ)V");
  LOG_ALWAYS_FATAL_IF(zipEntryCtor == NULL, "Unable to find ZipEntry.<init>");

  return 0;
}

}; // namespace android