summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 52f9f53..63331e3 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -118,7 +118,7 @@ main(void)
/*
* Create hard link to the Data group.
*/
- status = H5Glink(file, H5G_LINK_HARD, "Data", "Data_new");
+ status = H5Lcreate_hard(file, "Data", H5L_SAME_LOC, "Data_new", H5P_DEFAULT, H5P_DEFAULT);
/*
* We can access "Compressed_Data" dataset using created