Skip to content

Commit

Permalink
tcp_wrap: update after libuv API change
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 24, 2011
1 parent 2aefea5 commit 9cb6249
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tcp_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ class TCPWrap : public StreamWrap {

UNWRAP

int namelen = sizeof(address);
int r = uv_getsockname(&wrap->handle_, &address, &namelen);
int addrlen = sizeof(address);
int r = uv_getsockname(reinterpret_cast<uv_handle_t*>(&wrap->handle_),
reinterpret_cast<sockaddr*>(&address),
&addrlen);

Local<Object> sockname = Object::New();
if (r != 0) {
Expand Down

0 comments on commit 9cb6249

Please sign in to comment.