[libbluray-devel] Add const

hpi1 git at videolan.org
Fri May 12 13:51:20 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 12 13:56:26 2017 +0300| [90f3cf2d451f00cabf18068a0e2d128eee191022] | committer: hpi1

Add const

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=90f3cf2d451f00cabf18068a0e2d128eee191022
---

 src/libbluray/bdj/bdj.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 1714cd0b..e1ec5b72 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -329,25 +329,25 @@ static void *_load_jvm(const char **p_java_home)
 {
 #ifdef HAVE_BDJ_J2ME
 # ifdef _WIN32
-    static const char *jvm_path[] = {NULL, JDK_HOME};
+    static const char * const jvm_path[] = {NULL, JDK_HOME};
     static const char  jvm_dir[]  = "bin";
     static const char  jvm_lib[]  = "cvmi";
 # else
-    static const char *jvm_path[] = {NULL, JDK_HOME, "/opt/PhoneME"};
+    static const char * const jvm_path[] = {NULL, JDK_HOME, "/opt/PhoneME"};
     static const char  jvm_dir[]  = "bin";
     static const char  jvm_lib[]  = "libcvm";
 # endif
 #else
 # ifdef _WIN32
-    static const char *jvm_path[] = {NULL, JDK_HOME};
+    static const char * const jvm_path[] = {NULL, JDK_HOME};
     static const char  jvm_dir[]  = "jre\\bin\\server";
     static const char  jvm_lib[]  = "jvm";
 # else
 #  ifdef __APPLE__
-    static const char *jvm_path[] = {NULL, JDK_HOME};
+    static const char * const jvm_path[] = {NULL, JDK_HOME};
     static const char  jvm_dir[]  = "jre/lib/server";
 #  else
-    static const char *jvm_path[] = {NULL, JDK_HOME,
+    static const char * const jvm_path[] = {NULL, JDK_HOME,
                                      "/usr/lib/jvm/default-java",
                                      "/usr/lib/jvm/default",
                                      "/usr/lib/jvm/",



More information about the libbluray-devel mailing list