Browse Source

lint: fix code style

Couple code style fixes to pass cpplint

Fixes: 304c0b4 "crypto: store thread id as pointer-sized"
v0.11.15-release
Trevor Norris 10 years ago
parent
commit
c4f6c22c20
  1. 4
      src/node_crypto.cc

4
src/node_crypto.cc

@ -151,8 +151,8 @@ template int SSLWrap<TLSCallbacks>::TLSExtStatusCallback(SSL* s, void* arg);
static void crypto_threadid_cb(CRYPTO_THREADID* tid) { static void crypto_threadid_cb(CRYPTO_THREADID* tid) {
assert(sizeof(uv_thread_t) <= sizeof(void*)); assert(sizeof(uv_thread_t) <= sizeof(void*)); // NOLINT(runtime/sizeof)
CRYPTO_THREADID_set_pointer(tid, (void*) uv_thread_self()); CRYPTO_THREADID_set_pointer(tid, reinterpret_cast<void*>(uv_thread_self()));
} }

Loading…
Cancel
Save