summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 4b0ea75..3e8a378 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -55,7 +55,7 @@ list_attr (hid_t obj, const char *attr_name, void __unused__ *op_data)
if ((attr = H5Aopen_name (obj, attr_name))) {
hid_t space = H5Aget_space (attr);
hsize_t size[64];
- int ndims = H5Sget_dims (space, size, NULL);
+ int ndims = H5Sextent_dims (space, size, NULL);
H5Sclose (space);
printf (" {");
for (i=0; i<ndims; i++) {
@@ -114,7 +114,7 @@ list (hid_t group, const char *name, void __unused__ *op_data)
hsize_t size[64];
hsize_t maxsize[64];
hid_t space = H5Dget_space (obj);
- int ndims = H5Sget_dims(space, size, maxsize);
+ int ndims = H5Sextent_dims(space, size, maxsize);
printf ("Dataset {");
for (i=0; i<ndims; i++) {
HDfprintf (stdout, "%s%Hu", i?", ":"", size[i]);