summaryrefslogtreecommitdiffstats
path: root/examples/h5_attribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_attribute.c')
-rw-r--r--examples/h5_attribute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c
index 1581a88..b49b0e1 100644
--- a/examples/h5_attribute.c
+++ b/examples/h5_attribute.c
@@ -178,7 +178,7 @@ main (void)
/*
* Open the dataset.
*/
- dataset = H5Dopen(file,"Dataset");
+ dataset = H5Dopen2(file, "Dataset", H5P_DEFAULT);
/*
* Attach to the scalar attribute using attribute name, then read and