summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-12-14 01:40:33 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-12-14 01:40:33 (GMT)
commit8e4b34afd00c0c267cdfa49ed42f4ec91b393a9f (patch)
treec1c911a7c741bf27abd1383be1bdaf687678c8a5 /src/H5Pdcpl.c
parent0a4834c2645b5d6f2fbe6ae6d04733e59792d9f8 (diff)
downloadhdf5-8e4b34afd00c0c267cdfa49ed42f4ec91b393a9f.zip
hdf5-8e4b34afd00c0c267cdfa49ed42f4ec91b393a9f.tar.gz
hdf5-8e4b34afd00c0c267cdfa49ed42f4ec91b393a9f.tar.bz2
formatting adjustments
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 5f13bb5..f986d8c 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -278,24 +278,10 @@ H5P__dcrt_reg_prop(H5P_genclass_t *pclass)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the object header minimization property */
- if (0 > H5P__register_real(
- pclass, /* class */
- H5D_CRT_MIN_DSET_HDR_SIZE_NAME, /* name */
- H5D_CRT_MIN_DSET_HDR_SIZE_SIZE, /* size */
- &H5O_ohdr_min_g, /* default */
- NULL, /* create */
- NULL, /* set */
- NULL, /* get */
- H5D_CRT_MIN_DSET_HDR_SIZE_ENC, /* encode */
- H5D_CRT_MIN_DSET_HDR_SIZE_DEC, /* decode */
- NULL, /* delete */
- NULL, /* copy */
- NULL, /* compare */
- NULL)) /* close */
- {
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL,
- "can't insert property into class")
- }
+ if (H5P__register_real(pclass, H5D_CRT_MIN_DSET_HDR_SIZE_NAME, H5D_CRT_MIN_DSET_HDR_SIZE_SIZE, &H5O_ohdr_min_g,
+ NULL, NULL, NULL, H5D_CRT_MIN_DSET_HDR_SIZE_ENC, H5D_CRT_MIN_DSET_HDR_SIZE_DEC,
+ NULL, NULL, NULL, NULL) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the type ID property*/
if(H5P__register_real(pclass, H5VL_PROP_DSET_TYPE_ID, sizeof(hid_t), &type_id,