@ -4027,7 +4027,6 @@ class PBKDF2Request : public AsyncWrap {
error_ = err ;
error_ = err ;
}
}
// TODO(trevnorris): Make private and make work with CONTAINER_OF macro.
uv_work_t work_req_ ;
uv_work_t work_req_ ;
private :
private :
@ -4059,7 +4058,7 @@ void EIO_PBKDF2(PBKDF2Request* req) {
void EIO_PBKDF2 ( uv_work_t * work_req ) {
void EIO_PBKDF2 ( uv_work_t * work_req ) {
PBKDF2Request * req = CONTAINER_OF ( work_req , PBKDF2Request , work_req_ ) ;
PBKDF2Request * req = ContainerOf ( & PBKDF2Request : : work_req_ , work_req ) ;
EIO_PBKDF2 ( req ) ;
EIO_PBKDF2 ( req ) ;
}
}
@ -4078,7 +4077,7 @@ void EIO_PBKDF2After(PBKDF2Request* req, Local<Value> argv[2]) {
void EIO_PBKDF2After ( uv_work_t * work_req , int status ) {
void EIO_PBKDF2After ( uv_work_t * work_req , int status ) {
assert ( status = = 0 ) ;
assert ( status = = 0 ) ;
PBKDF2Request * req = CONTAINER_OF ( work_req , PBKDF2Request , work_req_ ) ;
PBKDF2Request * req = ContainerOf ( & PBKDF2Request : : work_req_ , work_req ) ;
Environment * env = req - > env ( ) ;
Environment * env = req - > env ( ) ;
HandleScope handle_scope ( env - > isolate ( ) ) ;
HandleScope handle_scope ( env - > isolate ( ) ) ;
Context : : Scope context_scope ( env - > context ( ) ) ;
Context : : Scope context_scope ( env - > context ( ) ) ;
@ -4257,7 +4256,6 @@ class RandomBytesRequest : public AsyncWrap {
error_ = err ;
error_ = err ;
}
}
// TODO(trevnorris): Make private and make work with CONTAINER_OF macro.
uv_work_t work_req_ ;
uv_work_t work_req_ ;
private :
private :
@ -4269,9 +4267,8 @@ class RandomBytesRequest : public AsyncWrap {
template < bool pseudoRandom >
template < bool pseudoRandom >
void RandomBytesWork ( uv_work_t * work_req ) {
void RandomBytesWork ( uv_work_t * work_req ) {
RandomBytesRequest * req = CONTAINER_OF ( work_req ,
RandomBytesRequest * req =
RandomBytesRequest ,
ContainerOf ( & RandomBytesRequest : : work_req_ , work_req ) ;
work_req_ ) ;
int r ;
int r ;
// Ensure that OpenSSL's PRNG is properly seeded.
// Ensure that OpenSSL's PRNG is properly seeded.
@ -4317,9 +4314,8 @@ void RandomBytesCheck(RandomBytesRequest* req, Local<Value> argv[2]) {
void RandomBytesAfter ( uv_work_t * work_req , int status ) {
void RandomBytesAfter ( uv_work_t * work_req , int status ) {
assert ( status = = 0 ) ;
assert ( status = = 0 ) ;
RandomBytesRequest * req = CONTAINER_OF ( work_req ,
RandomBytesRequest * req =
RandomBytesRequest ,
ContainerOf ( & RandomBytesRequest : : work_req_ , work_req ) ;
work_req_ ) ;
Environment * env = req - > env ( ) ;
Environment * env = req - > env ( ) ;
HandleScope handle_scope ( env - > isolate ( ) ) ;
HandleScope handle_scope ( env - > isolate ( ) ) ;
Context : : Scope context_scope ( env - > context ( ) ) ;
Context : : Scope context_scope ( env - > context ( ) ) ;