summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2023-03-16 01:06:41 (GMT)
committerGitHub <noreply@github.com>2023-03-16 01:06:41 (GMT)
commitb2da35ea7456fe95c42ff6343425351d670af960 (patch)
tree7193f09c1d70849f7346b2714b820580e3bcdc9c
parent32755b3fb2156f446477b63e63410d998571ce44 (diff)
downloadhdf5-b2da35ea7456fe95c42ff6343425351d670af960.zip
hdf5-b2da35ea7456fe95c42ff6343425351d670af960.tar.gz
hdf5-b2da35ea7456fe95c42ff6343425351d670af960.tar.bz2
1.14 Fix H5Dchunk_iter doxygen example, cherry-pick of 04682f2 (#2519) (#2548)
* Fix H5Dchunk_iter doxygen example, cherry-pick of ef3bed6 (#2519) Co-authored-by: Mark Kittisopikul <mkitti@users.noreply.github.com>
-rw-r--r--doxygen/examples/H5D_examples.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doxygen/examples/H5D_examples.c b/doxygen/examples/H5D_examples.c
index 7af3cc4..1ad2794 100644
--- a/doxygen/examples/H5D_examples.c
+++ b/doxygen/examples/H5D_examples.c
@@ -7,10 +7,10 @@
//! <!-- [H5Dchunk_iter_cb] -->
int
-chunk_cb(const hsize_t *offset, uint32_t filter_mask, haddr_t addr, uint32_t nbytes, void *op_data)
+chunk_cb(const hsize_t *offset, unsigned filter_mask, haddr_t addr, hsize_t size, void *op_data)
{
// only print the allocated chunk size only
- printf("%d\n", nbytes);
+ printf("%" PRIuHSIZE "\n", size);
return EXIT_SUCCESS;
}
//! <!-- [H5Dchunk_iter_cb] -->
@@ -67,7 +67,7 @@ H5Ovisit_cb(hid_t obj, const char *name, const H5O_info2_t *info, void *op_data)
retval = -1;
goto fail_fig;
}
-
+fail_fig:
fail_shape:
H5Sclose(dspace);
fail_dspace: