summaryrefslogtreecommitdiffstats
path: root/examples/h5_rdwt.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_rdwt.c')
-rw-r--r--examples/h5_rdwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_rdwt.c b/examples/h5_rdwt.c
index 2f9d649..d5444e0 100644
--- a/examples/h5_rdwt.c
+++ b/examples/h5_rdwt.c
@@ -36,7 +36,7 @@ int main() {
file_id = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
/* Open an existing dataset. */
- dataset_id = H5Dopen(file_id, "/dset", H5P_DEFAULT);
+ dataset_id = H5Dopen2(file_id, "/dset", H5P_DEFAULT);
/* Write the dataset. */
status = H5Dwrite(dataset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,