commit | 76f6a86de25e1bf74717e047e55fd44b089673f3 | [log] [tgz] |
---|---|---|
author | Daniel Micay <danielmicay@gmail.com> | Sat Sep 19 17:31:01 2015 -0400 |
committer | Daniel Micay <danielmicay@gmail.com> | Tue Sep 22 17:10:35 2015 -0400 |
tree | c07e5cd58bcdd692593d6b7cd3edd40344ee4973 | |
parent | 24ff6823c411f794aceaae89b0b029fbf8ef6b29 [diff] [blame] |
constify JNINativeMethod function pointer tables Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
diff --git a/core/jni/android_hardware_SerialPort.cpp b/core/jni/android_hardware_SerialPort.cpp index 2d2ff4d..393dc7b 100644 --- a/core/jni/android_hardware_SerialPort.cpp +++ b/core/jni/android_hardware_SerialPort.cpp
@@ -243,7 +243,7 @@ tcsendbreak(fd, 0); } -static JNINativeMethod method_table[] = { +static const JNINativeMethod method_table[] = { {"native_open", "(Ljava/io/FileDescriptor;I)V", (void *)android_hardware_SerialPort_open}, {"native_close", "()V", (void *)android_hardware_SerialPort_close},