lint: fix code style

Couple code style fixes to pass cpplint

Fixes: 304c0b4 "crypto: store thread id as pointer-sized"
This commit is contained in:
Trevor Norris 2014-12-02 17:10:40 -08:00
parent d312b6d15c
commit c4f6c22c20

View File

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