summaryrefslogtreecommitdiffstats
path: root/test/getname.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-28 21:31:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-28 21:31:57 (GMT)
commit74ceb182bd741925909195abfbc07052c24f88d5 (patch)
treeb0a7a4a5403b67a5f202ddf4d8f71c06343e3a67 /test/getname.c
parent1b488cbc147f2eaf5f95bb06ac2370145f455f4d (diff)
downloadhdf5-74ceb182bd741925909195abfbc07052c24f88d5.zip
hdf5-74ceb182bd741925909195abfbc07052c24f88d5.tar.gz
hdf5-74ceb182bd741925909195abfbc07052c24f88d5.tar.bz2
[svn-r14120] Description:
Move H5Glink2 to deprecated routines section. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew) Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'test/getname.c')
-rw-r--r--test/getname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/getname.c b/test/getname.c
index 29085e0..c8386ad 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -1035,7 +1035,7 @@ test_main(hid_t file_id, hid_t fapl)
if((dataset_id = H5Dopen(file_id, "/g17/d")) < 0) FAIL_STACK_ERROR
/* Create link to dataset named "link" */
- if(H5Glink2(dataset_id,".",H5G_LINK_HARD,file_id,"/g17/link") < 0) FAIL_STACK_ERROR
+ if(H5Lcreate_hard(dataset_id, ".", file_id, "/g17/link", H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR
if((dataset2_id = H5Dopen(file_id, "/g17/link")) < 0) FAIL_STACK_ERROR
/* Make sure that the two IDs use two different names */