[libbluray-devel] Add parentheses
hpi1
git at videolan.org
Wed Jun 7 22:59:24 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jun 7 23:47:18 2017 +0300| [a6d9f219ed4a0173514d7fae93d1526cfc999071] | committer: hpi1
Add parentheses
Use common style when assigning void* to function pointer
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a6d9f219ed4a0173514d7fae93d1526cfc999071
---
src/libbluray/bdj/bdj.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index ea844e92..b4214c0b 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -677,7 +677,7 @@ static int _find_jvm(void *jvm_lib, JNIEnv **env, JavaVM **jvm)
{
fptr_JNI_GetCreatedJavaVMs JNI_GetCreatedJavaVMs_fp;
- *(void **)&JNI_GetCreatedJavaVMs_fp = dl_dlsym(jvm_lib, "JNI_GetCreatedJavaVMs");
+ *(void **)(&JNI_GetCreatedJavaVMs_fp) = dl_dlsym(jvm_lib, "JNI_GetCreatedJavaVMs");
if (JNI_GetCreatedJavaVMs_fp == NULL) {
BD_DEBUG(DBG_BDJ | DBG_CRIT, "Couldn't find symbol JNI_GetCreatedJavaVMs.\n");
return 0;
@@ -703,7 +703,7 @@ static int _create_jvm(void *jvm_lib, const char *java_home, const char *jar_fil
fptr_JNI_CreateJavaVM JNI_CreateJavaVM_fp;
- *(void **)&JNI_CreateJavaVM_fp = dl_dlsym(jvm_lib, "JNI_CreateJavaVM");
+ *(void **)(&JNI_CreateJavaVM_fp) = dl_dlsym(jvm_lib, "JNI_CreateJavaVM");
if (JNI_CreateJavaVM_fp == NULL) {
BD_DEBUG(DBG_BDJ | DBG_CRIT, "Couldn't find symbol JNI_CreateJavaVM.\n");
return 0;
More information about the libbluray-devel
mailing list