From 4f13e7efd74c2d161bbcf03a4fa9159bc2b78d41 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 15 Apr 2024 08:37:50 +0900 Subject: [PATCH] Fix coding style issues spotted by clang-tidy Signed-off-by: Daiki Ueno --- tests/tcmpkeys.c | 8 ++++++-- tests/tlsctx.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/tcmpkeys.c b/tests/tcmpkeys.c index ac338485..b261729c 100644 --- a/tests/tcmpkeys.c +++ b/tests/tcmpkeys.c @@ -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)); @@ -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) diff --git a/tests/tlsctx.c b/tests/tlsctx.c index da164d07..8e159430 100644 --- a/tests/tlsctx.c +++ b/tests/tlsctx.c @@ -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)); @@ -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[])