summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_gperf_writer.c
diff options
context:
space:
mode:
authorMuqun Yang <myang6@hdfgroup.org>2021-08-19 20:51:33 (GMT)
committerMuqun Yang <myang6@hdfgroup.org>2021-08-19 20:51:33 (GMT)
commit1ce07e7bcc8a72ba84998f6526e116f05c281d9c (patch)
tree05a42444fcca504cb5d69c9827e5b978a21838a6 /test/vfd_swmr_gperf_writer.c
parent49c9cea3a89232d4cc94bc72de4f54b4d2998cd7 (diff)
parentee86255610d4db64921ab18cc21fc16c94859067 (diff)
downloadhdf5-1ce07e7bcc8a72ba84998f6526e116f05c281d9c.zip
hdf5-1ce07e7bcc8a72ba84998f6526e116f05c281d9c.tar.gz
hdf5-1ce07e7bcc8a72ba84998f6526e116f05c281d9c.tar.bz2
Merge branch 'feature/vfd_swmr' of https://github.com/kyang2014/hdf5 into feature/vfd_swmr
Diffstat (limited to 'test/vfd_swmr_gperf_writer.c')
-rw-r--r--test/vfd_swmr_gperf_writer.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/test/vfd_swmr_gperf_writer.c b/test/vfd_swmr_gperf_writer.c
index 61b9217..e0a9b43 100644
--- a/test/vfd_swmr_gperf_writer.c
+++ b/test/vfd_swmr_gperf_writer.c
@@ -605,8 +605,6 @@ error:
return false;
}
-
-
/*-------------------------------------------------------------------------
* Function: add_vlstr_attrs
*
@@ -637,18 +635,16 @@ static bool
add_vlstr_attrs(state_t *s, hid_t g, unsigned int which, unsigned int num_attrs)
{
unsigned u;
- bool ret_value = true;
+ bool ret_value = true;
for (u = 0; u < num_attrs; u++) {
- ret_value = add_vlstr_attr(s, g, u+which);
- if(ret_value == false)
+ ret_value = add_vlstr_attr(s, g, u + which);
+ if (ret_value == false)
break;
}
return ret_value;
}
-
-
/*-------------------------------------------------------------------------
* Function: add_default_group_attr
*
@@ -687,13 +683,12 @@ add_default_group_attr(state_t *s, hid_t g, unsigned int which)
* the default number of attribute is 1.
*/
/* If the vl string attribute type is chosen. */
- if(s->vlstr_test == true)
+ if (s->vlstr_test == true)
return add_vlstr_attrs(s, g, which, s->num_attrs);
- else
+ else
return add_attr(s, g, which, s->num_attrs, aname_format, which);
}
-
/*-------------------------------------------------------------------------
* Function: del_one_attr
*
@@ -894,7 +889,7 @@ error:
*
* Purpose: Modify the value of an VL string attribute in a group.
*
- * Parameters:
+ * Parameters:
* hid_t g
* HDF5 object ID (in this file: means group ID)
*
@@ -2750,7 +2745,7 @@ main(int argc, char **argv)
TEST_ERROR;
}
- if(writer == false) {
+ if (writer == false) {
printf("Reader is skipped for the performance tests.\n");
return EXIT_SUCCESS;
}