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>
This commit is contained in:
Mat 2016-03-10 02:29:02 +01:00 committed by Rich Salz
parent dd60efea95
commit 642565106e

View file

@ -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;