summaryrefslogtreecommitdiffstats
path: root/test/getname.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2020-01-04 16:05:22 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2020-01-04 16:05:22 (GMT)
commit9a155a538bb179c794c75780757ef3e6af3c9b28 (patch)
tree771322bef14326f5bbd8e1cb9b261baf0b22faff /test/getname.c
parent617e2166b26f6b872281888c4f9f2486004a1a58 (diff)
downloadhdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.zip
hdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.tar.gz
hdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.tar.bz2
Cherry pick of 0225e6d5969
Diffstat (limited to 'test/getname.c')
-rw-r--r--test/getname.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/getname.c b/test/getname.c
index 873ceb9..399f364 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -2380,7 +2380,7 @@ test_main(hid_t file_id, hid_t fapl)
if((size = H5Iget_name(dtype, NULL, 0)) != 0) TEST_ERROR
/* Create a link to the object */
- if( H5Olink(dtype, file2_id, "datatype", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
+ if(H5Olink(dtype, file2_id, "datatype", H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR
/* Commit a second datatype with no links to it and commit it */
if((dtype_anon = H5Tcopy(H5T_NATIVE_INT)) < 0) TEST_ERROR
@@ -2405,17 +2405,17 @@ test_main(hid_t file_id, hid_t fapl)
/* Check the H5Iget_name does not return an error for anon committed datatypes */
if((dtype_anon = H5Oopen_by_addr(file2_id, oinfo.addr)) < 0) TEST_ERROR
- if((size = H5Iget_name(dtype_anon,NULL,0)) != 0) TEST_ERROR
+ if((size = H5Iget_name(dtype_anon, NULL, 0)) != 0) TEST_ERROR
if(H5Tclose(dtype_anon) < 0) TEST_ERROR
if(H5Fclose(file2_id) < 0) TEST_ERROR
PASSED();
- return(0);
+ return 0;
error:
- return(1);
+ return 1;
}
static int