mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
Fix code style
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
2667eda785
commit
6a997c9994
@ -95,13 +95,13 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const int thread_random_reps = 10;
|
static const int thread_random_reps = 10;
|
||||||
void *thread_random_function( void* ctx )
|
void *thread_random_function(void *ctx)
|
||||||
{
|
{
|
||||||
unsigned char out[16];
|
unsigned char out[16];
|
||||||
memset(out, 0, sizeof(out));
|
memset(out, 0, sizeof(out));
|
||||||
|
|
||||||
for(int i = 0; i < thread_random_reps; i++) {
|
for (int i = 0; i < thread_random_reps; i++) {
|
||||||
TEST_EQUAL(mbedtls_ctr_drbg_random((mbedtls_ctr_drbg_context*) ctx, out, sizeof(out)), 0);
|
TEST_EQUAL(mbedtls_ctr_drbg_random((mbedtls_ctr_drbg_context *) ctx, out, sizeof(out)), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
@ -382,7 +382,7 @@ void ctr_drbg_threads(data_t *expected_result, int reseed)
|
|||||||
for (size_t i = 0; i < THREAD_CNT; i++) {
|
for (size_t i = 0; i < THREAD_CNT; i++) {
|
||||||
TEST_EQUAL(
|
TEST_EQUAL(
|
||||||
pthread_create(&threads[i], NULL,
|
pthread_create(&threads[i], NULL,
|
||||||
thread_random_function, (void*) &ctx),
|
thread_random_function, (void *) &ctx),
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user