Skip to content

Commit 98124ec

Browse files
Committing clang-format changes
1 parent d24a943 commit 98124ec

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

tools/test/h5dump/h5dumpgentest.c

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@
143143
/* utility functions */
144144
static int make_dset(hid_t loc_id, const char *name, hid_t sid, hid_t tid, hid_t dcpl, void *buf);
145145
static int write_attr(hid_t loc_id, int rank, hsize_t *dims, const char *attr_name, hid_t tid, void *buf);
146-
static int write_dset(hid_t loc_id, int rank, hsize_t *dims, const char *dset_name, hid_t tid_dset, hid_t tid_memory, void *buf);
146+
static int write_dset(hid_t loc_id, int rank, hsize_t *dims, const char *dset_name, hid_t tid_dset,
147+
hid_t tid_memory, void *buf);
147148

148149
/* a filter operation callback function */
149150
static size_t myfilter(unsigned int H5_ATTR_UNUSED flags, size_t H5_ATTR_UNUSED cd_nelmts,
@@ -5072,7 +5073,8 @@ write_attr(hid_t loc_id, int rank, hsize_t *dims, const char *attr_name, hid_t t
50725073
*/
50735074

50745075
static int
5075-
write_dset(hid_t loc_id, int rank, hsize_t *dims, const char *dset_name, hid_t tid_dset, hid_t tid_memory, void *buf)
5076+
write_dset(hid_t loc_id, int rank, hsize_t *dims, const char *dset_name, hid_t tid_dset, hid_t tid_memory,
5077+
void *buf)
50765078
{
50775079
hid_t did;
50785080
hid_t sid;
@@ -13386,14 +13388,15 @@ gent_trefer_reg_1d(void)
1338613388
return;
1338713389
}
1338813390

13389-
int gent_tvms(void)
13391+
int
13392+
gent_tvms(void)
1339013393
{
13391-
hid_t file_id = H5I_INVALID_HID;
13392-
hid_t dataset_id = H5I_INVALID_HID;
13394+
hid_t file_id = H5I_INVALID_HID;
13395+
hid_t dataset_id = H5I_INVALID_HID;
1339313396
hid_t dataspace_id = H5I_INVALID_HID;
13394-
hsize_t dims[2] = {5, 6};
13395-
int data[5][6];
13396-
int i, j;
13397+
hsize_t dims[2] = {5, 6};
13398+
int data[5][6];
13399+
int i, j;
1339713400

1339813401
/* Initialize the data array */
1339913402
for (i = 0; i < 5; i++) {
@@ -13409,8 +13412,8 @@ int gent_tvms(void)
1340913412
return -1;
1341013413

1341113414
/* Create the dataset with VAX F64 datatype */
13412-
if ((dataset_id = H5Dcreate2(file_id, "/Array", H5T_VAX_F64, dataspace_id,
13413-
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0)
13415+
if ((dataset_id = H5Dcreate2(file_id, "/Array", H5T_VAX_F64, dataspace_id, H5P_DEFAULT, H5P_DEFAULT,
13416+
H5P_DEFAULT)) < 0)
1341413417
return -1;
1341513418

1341613419
/* Write the data to the dataset */

0 commit comments

Comments
 (0)