diff options
Diffstat (limited to 'crypto/openssl/test/threadstest.h')
| -rw-r--r-- | crypto/openssl/test/threadstest.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/openssl/test/threadstest.h b/crypto/openssl/test/threadstest.h index f8e6589e0c31..507ba1f60311 100644 --- a/crypto/openssl/test/threadstest.h +++ b/crypto/openssl/test/threadstest.h @@ -8,7 +8,7 @@ */ #if defined(_WIN32) -# include <windows.h> +#include <windows.h> #endif #include <string.h> @@ -37,7 +37,7 @@ static DWORD WINAPI thread_run(LPVOID arg) { void (*f)(void); - *(void **) (&f) = arg; + *(void **)(&f) = arg; f(); return 0; @@ -45,7 +45,7 @@ static DWORD WINAPI thread_run(LPVOID arg) static int run_thread(thread_t *t, void (*f)(void)) { - *t = CreateThread(NULL, 0, thread_run, *(void **) &f, 0, NULL); + *t = CreateThread(NULL, 0, thread_run, *(void **)&f, 0, NULL); return *t != NULL; } @@ -62,7 +62,7 @@ static void *thread_run(void *arg) { void (*f)(void); - *(void **) (&f) = arg; + *(void **)(&f) = arg; f(); OPENSSL_thread_stop(); @@ -71,7 +71,7 @@ static void *thread_run(void *arg) static int run_thread(thread_t *t, void (*f)(void)) { - return pthread_create(t, NULL, thread_run, *(void **) &f) == 0; + return pthread_create(t, NULL, thread_run, *(void **)&f) == 0; } static int wait_for_thread(thread_t thread) @@ -80,4 +80,3 @@ static int wait_for_thread(thread_t thread) } #endif - |
