summaryrefslogtreecommitdiffstats
path: root/examples/h5_reference.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_reference.c')
-rw-r--r--examples/h5_reference.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_reference.c b/examples/h5_reference.c
index 002d753..3bd1ab3 100644
--- a/examples/h5_reference.c
+++ b/examples/h5_reference.c
@@ -112,7 +112,7 @@ main(void) {
/*
* Open and read dataset "R".
*/
- did_r = H5Dopen(fid, "R");
+ did_r = H5Dopen2(fid, "R", H5P_DEFAULT);
status = H5Dread(did_r, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL,
H5P_DEFAULT, rbuf);