OSDN Git Service

Frameworks/base: Fix registration function
authorAndreas Gampe <agampe@google.com>
Tue, 16 Feb 2016 18:09:31 +0000 (10:09 -0800)
committerAndreas Gampe <agampe@google.com>
Tue, 16 Feb 2016 19:54:48 +0000 (11:54 -0800)
Registration functions return "int."

(cherry picked from commit faa1033dc7d6b1ea6c17a483e586eaa167d154f9)

Change-Id: Icb8d35f3bc23794cdb22db1c1adda236c9d8676e

core/jni/android_util_jar_StrictJarFile.cpp

index 7f8f708..bfdea8f 100644 (file)
@@ -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