constify JNINativeMethod function pointer tables
Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
This commit is contained in:
@@ -185,7 +185,7 @@ static jlong getUidStat(JNIEnv* env, jclass clazz, jint uid, jint type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static JNINativeMethod gMethods[] = {
|
static const JNINativeMethod gMethods[] = {
|
||||||
{"nativeGetTotalStat", "(I)J", (void*) getTotalStat},
|
{"nativeGetTotalStat", "(I)J", (void*) getTotalStat},
|
||||||
{"nativeGetIfaceStat", "(Ljava/lang/String;I)J", (void*) getIfaceStat},
|
{"nativeGetIfaceStat", "(Ljava/lang/String;I)J", (void*) getIfaceStat},
|
||||||
{"nativeGetUidStat", "(II)J", (void*) getUidStat},
|
{"nativeGetUidStat", "(II)J", (void*) getUidStat},
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ static int readNetworkStatsDetail(JNIEnv* env, jclass clazz, jobject stats,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static JNINativeMethod gMethods[] = {
|
static const JNINativeMethod gMethods[] = {
|
||||||
{ "nativeReadNetworkStatsDetail",
|
{ "nativeReadNetworkStatsDetail",
|
||||||
"(Landroid/net/NetworkStats;Ljava/lang/String;I[Ljava/lang/String;I)I",
|
"(Landroid/net/NetworkStats;Ljava/lang/String;I[Ljava/lang/String;I)I",
|
||||||
(void*) readNetworkStatsDetail }
|
(void*) readNetworkStatsDetail }
|
||||||
|
|||||||
Reference in New Issue
Block a user