diff options
author | Mat <mberchtold@gmail.com> | 2016-03-10 02:29:02 +0100 |
---|---|---|
committer | Rich Salz <rsalz@akamai.com> | 2016-03-09 20:42:30 -0500 |
commit | 642565106e7764cecf96cf865bd6c52afaa68f22 (patch) | |
tree | c0f2c19c59a55be57024b8e3014d33ea674158d8 | |
parent | dd60efea955e41a6f0926f93ec1503c6f83c4e58 (diff) |
Fix return type for CRYPTO_THREAD_run_once
return type should be int and not void
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r-- | crypto/threads_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/threads_win.c b/crypto/threads_win.c index 741e8f827e..5a14872d1c 100644 --- a/crypto/threads_win.c +++ b/crypto/threads_win.c @@ -133,7 +133,7 @@ BOOL CALLBACK once_cb(PINIT_ONCE once, PVOID p, PVOID *pp) return TRUE; } -void CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) +int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) { if (InitOnceExecuteOnce(once, once_cb, init, NULL)) return 0; |