]> granicus.if.org Git - openssl/commitdiff
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 71576dae29431578578384535c7af24fe37f7893..42675267776c9bb89841727c4a28a12ec23e1563 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_pointer(id, &errno);
+       CRYPTO_THREADID_set_pointer(id, (void*)&errno);
 #endif
        }