Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
udp: 'interface' is reserved word on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 23, 2012
1 parent 667aae5 commit b1b16d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/udp_wrap.cc
Expand Up @@ -237,14 +237,14 @@ Handle<Value> UDPWrap::SetMembership(const Arguments& args,
assert(args.Length() == 2);

String::Utf8Value address(args[0]->ToString());
String::Utf8Value interface(args[1]->ToString());
String::Utf8Value iface(args[1]->ToString());

const char* interface_cstr = *interface;
const char* iface_cstr = *iface;
if (args[1]->IsUndefined() || args[1]->IsNull()) {
interface_cstr = NULL;
iface_cstr = NULL;
}

int r = uv_udp_set_membership(&wrap->handle_, *address, interface_cstr,
int r = uv_udp_set_membership(&wrap->handle_, *address, iface_cstr,
membership);

if (r)
Expand Down

0 comments on commit b1b16d1

Please sign in to comment.