diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/vfd_swmr_gperf_writer.c | 19 |
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; } |