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

crypto/cryptlib.c

index 97f0ddbbf8742b93139c8f8ab74d10f93b40ca47..a7cb4202e863530efa38e66c3a3f887471cc2eac 100644 (file)
@@ -504,7 +504,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_pointer(id, &errno);
+       CRYPTO_THREADID_set_pointer(id, (void*)&errno);
 #endif
        }