From: Mat Date: Thu, 10 Mar 2016 01:29:02 +0000 (+0100) Subject: Fix return type for CRYPTO_THREAD_run_once X-Git-Tag: OpenSSL_1_1_0-pre4~102 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=642565106e7764cecf96cf865bd6c52afaa68f22;p=oweals%2Fopenssl.git Fix return type for CRYPTO_THREAD_run_once return type should be int and not void Signed-off-by: Rich Salz Reviewed-by: Richard Levitte --- 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;