From 6a997c9994694b7c338a8ad8ebc22489872239c3 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 30 Nov 2023 14:47:17 +0000 Subject: [PATCH] Fix code style Signed-off-by: Paul Elliott --- tests/suites/test_suite_ctr_drbg.function | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suites/test_suite_ctr_drbg.function b/tests/suites/test_suite_ctr_drbg.function index 72cbf7bc9..5a77c1d43 100644 --- a/tests/suites/test_suite_ctr_drbg.function +++ b/tests/suites/test_suite_ctr_drbg.function @@ -95,13 +95,13 @@ exit: } static const int thread_random_reps = 10; -void *thread_random_function( void* ctx ) +void *thread_random_function(void *ctx) { unsigned char out[16]; memset(out, 0, sizeof(out)); - for(int i = 0; i < thread_random_reps; i++) { - TEST_EQUAL(mbedtls_ctr_drbg_random((mbedtls_ctr_drbg_context*) ctx, out, sizeof(out)), 0); + for (int i = 0; i < thread_random_reps; i++) { + TEST_EQUAL(mbedtls_ctr_drbg_random((mbedtls_ctr_drbg_context *) ctx, out, sizeof(out)), 0); } exit: @@ -382,7 +382,7 @@ void ctr_drbg_threads(data_t *expected_result, int reseed) for (size_t i = 0; i < THREAD_CNT; i++) { TEST_EQUAL( pthread_create(&threads[i], NULL, - thread_random_function, (void*) &ctx), + thread_random_function, (void *) &ctx), 0); }