summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-24 20:50:05 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-25 14:40:54 (GMT)
commit2599c231642879dad505291f7950d5bd796d80e1 (patch)
treecd839d286b6bddcafeecbe1ba55c00156b209136 /java
parent61d979c1e9173b5c3fe81f7dd6ce72dff414d623 (diff)
downloadhdf5-2599c231642879dad505291f7950d5bd796d80e1.zip
hdf5-2599c231642879dad505291f7950d5bd796d80e1.tar.gz
hdf5-2599c231642879dad505291f7950d5bd796d80e1.tar.bz2
Change signature of H5PLget_size
Diffstat (limited to 'java')
-rw-r--r--java/src/jni/h5plImp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/java/src/jni/h5plImp.c b/java/src/jni/h5plImp.c
index 5a2d3ba..7ee1940 100644
--- a/java/src/jni/h5plImp.c
+++ b/java/src/jni/h5plImp.c
@@ -211,13 +211,11 @@ JNIEXPORT jint JNICALL
Java_hdf_hdf5lib_H5_H5PLsize
(JNIEnv *env, jclass clss)
{
- int retVal = -1;
-
- retVal = H5PLsize();
- if (retVal < 0)
+ unsigned int listsize = 0;
+ if (H5PLget_loading_state(&listsize) < 0) {
h5libraryError(env);
-
- return (jint)retVal;
+ }
+ return (jint)listsize;
} /* end Java_hdf_hdf5lib_H5_H5PLsize */
#ifdef __cplusplus