Skip to content

Commit

Permalink
Fix coding style issues spotted by clang-tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno committed Apr 16, 2024
1 parent b7c6ecc commit 4f13e7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions tests/tcmpkeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ static void ossl_err_print(void)
const char *file, *func, *data;
int line;
err = ERR_get_error_all(&file, &line, &func, &data, NULL);
if (err == 0) break;
if (err == 0) {
break;
}

char buf[1024];
ERR_error_string_n(err, buf, sizeof(buf));
Expand All @@ -28,7 +30,9 @@ static void ossl_err_print(void)

first = false;
}
if (first) fprintf(stderr, "\n");
if (first) {
fprintf(stderr, "\n");
}
}

static EVP_PKEY *load_key(const char *uri)
Expand Down
8 changes: 6 additions & 2 deletions tests/tlsctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ static void ossl_err_print(void)
const char *file, *func, *data;
int line;
err = ERR_get_error_all(&file, &line, &func, &data, NULL);
if (err == 0) break;
if (err == 0) {
break;
}

char buf[1024];
ERR_error_string_n(err, buf, sizeof(buf));
Expand All @@ -26,7 +28,9 @@ static void ossl_err_print(void)

first = false;
}
if (first) fprintf(stderr, "\n");
if (first) {
fprintf(stderr, "\n");
}
}

int main(int argc, char *argv[])
Expand Down

0 comments on commit 4f13e7e

Please sign in to comment.