crypto: cast uv_thread_t to unsigned long
authorSaúl Ibarra Corretgé <saghul@gmail.com>
Wed, 26 Nov 2014 21:50:19 +0000 (22:50 +0100)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 26 Nov 2014 23:57:21 +0000 (15:57 -0800)
commit0308ad2ce53f73368f265d5e7ee4c0e9f07600a6
tree1aeea2dd2b6f45ddea13b1a7574e84a9504d1fb4
parent69904c8a7838ce4ef4023bb4b980bf87531d74ad
crypto: cast uv_thread_t to unsigned long

Should work in all platforms and it fixes this compilation problem
on OSX:

../src/node_crypto.cc:154:3: error: no matching function for call to
'CRYPTO_THREADID_set_numeric'
  CRYPTO_THREADID_set_numeric(tid, uv_thread_self());
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../deps/openssl/openssl/include/openssl/../../crypto/crypto.h:435:6:
    note: candidate function not viable: no known conversion from
          'uv_thread_t' (aka '_opaque_pthread_t *') to 'unsigned long'
          for 2nd argument
          void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID *id, unsigned
          long val);
               ^
               1 error generated.

PR-URL: https://github.com/joyent/node/pull/8785
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
src/node_crypto.cc