From 642565106e7764cecf96cf865bd6c52afaa68f22 Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 10 Mar 2016 02:29:02 +0100 Subject: [PATCH] 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 --- crypto/threads_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1