summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-12-13 20:02:29 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-12-13 20:02:29 (GMT)
commit0a4834c2645b5d6f2fbe6ae6d04733e59792d9f8 (patch)
tree272f4a59dac7ad5ab2a240ea0a8c664eb9619c59 /test/links.c
parent8b9c4b50e30f744d0bb42d22074f61da0fba66d8 (diff)
downloadhdf5-0a4834c2645b5d6f2fbe6ae6d04733e59792d9f8.zip
hdf5-0a4834c2645b5d6f2fbe6ae6d04733e59792d9f8.tar.gz
hdf5-0a4834c2645b5d6f2fbe6ae6d04733e59792d9f8.tar.bz2
Reformat to be more consistent with existing code.
Fix a few typos.
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/links.c b/test/links.c
index b1fd9a3..959fb13 100644
--- a/test/links.c
+++ b/test/links.c
@@ -3760,11 +3760,10 @@ external_set_elink_fapl2(hid_t fapl, hbool_t new_format)
if((space = H5Screate_simple(2, dims, NULL)) < 0) TEST_ERROR
/* Create dataset creation property list */
- if (dcpl_g == H5P_DEFAULT) {
+ if (dcpl_g == H5P_DEFAULT)
dcpl = H5Pcreate(H5P_DATASET_CREATE);
- } else {
+ else
dcpl = H5Pcopy(dcpl_g);
- }
if (0 > dcpl) TEST_ERROR;
if(H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_LATE) < 0) TEST_ERROR;
@@ -7521,11 +7520,10 @@ external_link_with_committed_datatype(hid_t fapl, hbool_t new_format)
if((sid2 = H5Screate_simple(2, dims, NULL)) < 0)
FAIL_STACK_ERROR
- if (dcpl_g == H5P_DEFAULT) {
+ if (dcpl_g == H5P_DEFAULT)
dcpl = H5Pcreate(H5P_DATASET_CREATE);
- } else {
+ else
dcpl = H5Pcopy(dcpl_g);
- }
if (0 > dcpl) FAIL_STACK_ERROR
if(H5Pset_chunk(dcpl, 2, chunks) < 0)
FAIL_STACK_ERROR
@@ -14941,7 +14939,8 @@ main(void)
}
/* always enter tests without external cache */
- if(H5Pset_elink_file_cache_size(my_fapl, 0) < 0) TEST_ERROR
+ if(H5Pset_elink_file_cache_size(my_fapl, 0) < 0)
+ TEST_ERROR
/* General tests... (on both old & new format groups */
nerrors += mklinks(my_fapl, new_format) < 0 ? 1 : 0;
@@ -15089,7 +15088,8 @@ main(void)
nerrors += group_info_old(fapl) < 0 ? 1 : 0;
if (minimize_dset_oh) {
- if (0 > H5Pclose(dcpl_g)) TEST_ERROR;
+ if (0 > H5Pclose(dcpl_g))
+ TEST_ERROR;
dcpl_g = -1;
}
} /* [un]minimized dataset object headers */