summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index f6b7c24..3994c57 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -273,12 +273,12 @@ h5dump_simple(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_type)
* match the dimensionality of the dataset.
*/
f_space = H5Dget_space(dset);
- ndims = H5Sextent_ndims(f_space);
+ ndims = H5Sget_simple_extent_ndims(f_space);
if ((size_t)ndims>NELMTS(sm_size)) return -1;
/* Assume entire data space to be printed */
for (i=0; i<(hsize_t)ndims; i++) p_min_idx[i] = 0;
- H5Sextent_dims(f_space, p_max_idx, NULL);
+ H5Sget_simple_extent_dims(f_space, p_max_idx, NULL);
for (i=0, p_nelmts=1; i<(hsize_t)ndims; i++) {
p_nelmts *= p_max_idx[i]-p_min_idx[i];
}