Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bmribler committed Aug 19, 2024
2 parents 55e1a89 + f2f1396 commit fe2879e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/error_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ init_error(void)
TEST_ERROR;

/* Account for null terminator */
if (cls_size != H5Eget_class_name(ERR_CLS, cls_name, (size_t)cls_size+1))
if (cls_size != H5Eget_class_name(ERR_CLS, cls_name, (size_t)cls_size + 1))
TEST_ERROR;
if (strcmp(ERR_CLS_NAME, cls_name) != 0)
TEST_ERROR;
Expand Down
6 changes: 3 additions & 3 deletions test/links.c
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,7 @@ test_deprec(hid_t fapl, bool new_format)
hsize_t num_objs; /* Number of objects in a group */
char filename[1024];
char tmpstr[1024];
int len = 0; /* Length of comment */
int len = 0; /* Length of comment */

if (new_format)
TESTING("backwards compatibility (w/new group format)");
Expand All @@ -1972,15 +1972,15 @@ test_deprec(hid_t fapl, bool new_format)

if (H5Gset_comment(file_id, "group1", "comment") < 0)
FAIL_STACK_ERROR;
if ((len=H5Gget_comment(file_id, "group1", 0, NULL)) < 0)
if ((len = H5Gget_comment(file_id, "group1", 0, NULL)) < 0)
FAIL_STACK_ERROR;

/* Returned length should be the same as strlen of the comment */
if ((size_t)len != strlen("comment"))
FAIL_STACK_ERROR;

/* Get and verify the comment */
if (H5Gget_comment(file_id, "group1", (size_t)len+1, tmpstr) < 0)
if (H5Gget_comment(file_id, "group1", (size_t)len + 1, tmpstr) < 0)
FAIL_STACK_ERROR;
if (strcmp(tmpstr, "comment") != 0)
FAIL_STACK_ERROR;
Expand Down

0 comments on commit fe2879e

Please sign in to comment.