summaryrefslogtreecommitdiffstats
path: root/src/H5F.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 /src/H5F.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 'src/H5F.c')
-rw-r--r--src/H5F.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 3cf912d..55e258b 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -1843,8 +1843,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Fget_dset_no_attrs_hint(hid_t file_id,
- hbool_t *minimize)
+H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize)
{
H5VL_object_t *vol_obj = NULL;
herr_t ret_value = SUCCEED;
@@ -1853,23 +1852,14 @@ H5Fget_dset_no_attrs_hint(hid_t file_id,
H5TRACE2("e", "i*b", file_id, minimize);
if (NULL == minimize)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL,
- "out pointer 'minimize' cannot be NULL")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "out pointer 'minimize' cannot be NULL")
vol_obj = (H5VL_object_t *)H5I_object(file_id);
if (NULL == vol_obj)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid file identifier")
- if (0 > H5VL_file_get(
- vol_obj,
- H5VL_FILE_GET_MIN_DSET_OHDR_FLAG,
- H5P_DATASET_XFER_DEFAULT,
- H5_REQUEST_NULL,
- minimize))
- {
- HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL,
- "unable to get file's dataset header minimization flag")
- }
+ if (0 > H5VL_file_get(vol_obj, H5VL_FILE_GET_MIN_DSET_OHDR_FLAG, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, minimize))
+ HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "unable to get file's dataset header minimization flag")
done:
FUNC_LEAVE_API(ret_value)
@@ -1897,8 +1887,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Fset_dset_no_attrs_hint(hid_t file_id,
- hbool_t minimize)
+H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize)
{
H5VL_object_t *vol_obj = NULL;
herr_t ret_value = SUCCEED;
@@ -1910,16 +1899,8 @@ H5Fset_dset_no_attrs_hint(hid_t file_id,
if (NULL == vol_obj)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid file identifier")
- if (0 > H5VL_file_optional(
- vol_obj,
- H5P_DATASET_XFER_DEFAULT,
- H5_REQUEST_NULL,
- H5VL_FILE_SET_MIN_DSET_OHDR_FLAG,
- minimize))
- {
- HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL,
- "unable to set file's dataset header minimization flag")
- }
+ if (0 > H5VL_file_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_FILE_SET_MIN_DSET_OHDR_FLAG, minimize))
+ HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "unable to set file's dataset header minimization flag")
done:
FUNC_LEAVE_API(ret_value)