Fix warning.
authorBodo Möller <bodo@openssl.org>
Mon, 17 Sep 2012 17:21:58 +0000 (17:21 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 17 Sep 2012 17:21:58 +0000 (17:21 +0000)
Submitted by: Chromium Authors

crypto/thr_id.c

index 71576da..4267526 100644 (file)
@@ -204,7 +204,7 @@ void CRYPTO_THREADID_current(CRYPTO_THREADID *id)
        CRYPTO_THREADID_set_numeric(id, (unsigned long)find_thread(NULL));
 #else
        /* For everything else, default to using the address of 'errno' */
        CRYPTO_THREADID_set_numeric(id, (unsigned long)find_thread(NULL));
 #else
        /* For everything else, default to using the address of 'errno' */
-       CRYPTO_THREADID_set_pointer(id, &errno);
+       CRYPTO_THREADID_set_pointer(id, (void*)&errno);
 #endif
        }
 
 #endif
        }