summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5plImp.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-24 21:44:35 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-24 21:44:35 (GMT)
commit9d84abe503267baaf3ddc675a4e3182d7f415be0 (patch)
treec8c6ad68accf6a903f20098b15565311d4b919fb /java/src/jni/h5plImp.c
parent2deb953dbbde17712723529c4bca6a2bf3eedf6b (diff)
parent0fb5ce7ad50664f800ffe7e107e0fb0f90f66e12 (diff)
downloadhdf5-9d84abe503267baaf3ddc675a4e3182d7f415be0.zip
hdf5-9d84abe503267baaf3ddc675a4e3182d7f415be0.tar.gz
hdf5-9d84abe503267baaf3ddc675a4e3182d7f415be0.tar.bz2
Merge pull request #457 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '0fb5ce7ad50664f800ffe7e107e0fb0f90f66e12': Correct name of native function Fix javadoc Fix typo Signature change requires a ptr Change H5PLsize() signature Revert HDFFV-9655 Changed signature of H5PLgetsize Revert HDFFV-9655 by disabling test and not using new function. Fix path to actual executable location Windows ahs one more directory level
Diffstat (limited to 'java/src/jni/h5plImp.c')
-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 09a1032..9b6100e 100644
--- a/java/src/jni/h5plImp.c
+++ b/java/src/jni/h5plImp.c
@@ -213,13 +213,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 (H5PLsize(&listsize) < 0) {
h5libraryError(env);
-
- return (jint)retVal;
+ }
+ return (jint)listsize;
} /* end Java_hdf_hdf5lib_H5_H5PLsize */
#ifdef __cplusplus