Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-05-08 19:45:40 +0300
committerAdam Langley <agl@google.com>2015-05-08 21:00:46 +0300
commitdfb67134dc029f0ed6001dfc8c0e2a04e136ffa6 (patch)
tree41344f41783066923734194e17819557e116d94b /crypto/thread_win.c
parent0d107e183ecadafe7ff207914394b2291758ed82 (diff)
Define CRYPTO_once_t as LONG on Windows.
This is used with a platform API, so it should use the corresponding platform type, saving us the size assert. It's ever defined in an internal header, so we can freely use windows.h and friends. Change-Id: Idc979309436adcf54524c835ddc2c98c3870d2e2 Reviewed-on: https://boringssl-review.googlesource.com/4680 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/thread_win.c')
-rw-r--r--crypto/thread_win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/thread_win.c b/crypto/thread_win.c
index 7a4f9bcb..fc8e50a1 100644
--- a/crypto/thread_win.c
+++ b/crypto/thread_win.c
@@ -32,9 +32,8 @@ OPENSSL_COMPILE_ASSERT(sizeof(CRYPTO_MUTEX) >= sizeof(CRITICAL_SECTION),
CRYPTO_MUTEX_too_small);
static void run_once(CRYPTO_once_t *in_once, void (*init)(void *), void *arg) {
- volatile LONG *once = (LONG*) in_once;
+ volatile LONG *once = in_once;
- assert(sizeof(LONG) == sizeof(CRYPTO_once_t));
/* Values must be aligned. */
assert((((uintptr_t) once) & 3) == 0);