mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-08 10:32:42 +00:00
23 lines
911 B
Diff
23 lines
911 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Sun, 31 Mar 2019 00:10:48 -0400
|
|
Subject: [PATCH] constify JNINativeMethod table
|
|
|
|
---
|
|
service/jni/com_android_server_wifi_WifiNative.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/service/jni/com_android_server_wifi_WifiNative.cpp b/service/jni/com_android_server_wifi_WifiNative.cpp
|
|
index 09a5ebf7c..18ff87517 100644
|
|
--- a/service/jni/com_android_server_wifi_WifiNative.cpp
|
|
+++ b/service/jni/com_android_server_wifi_WifiNative.cpp
|
|
@@ -77,7 +77,7 @@ static jbyteArray android_net_wifi_readKernelLog(JNIEnv *env, jclass cls) {
|
|
/*
|
|
* JNI registration.
|
|
*/
|
|
-static JNINativeMethod gWifiMethods[] = {
|
|
+static const JNINativeMethod gWifiMethods[] = {
|
|
/* name, signature, funcPtr */
|
|
{"readKernelLogNative", "()[B", (void*)android_net_wifi_readKernelLog},
|
|
};
|