Skip to content

Commit b1b16d1

Browse files
committed
udp: 'interface' is reserved word on windows.
1 parent 667aae5 commit b1b16d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/udp_wrap.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,14 @@ Handle<Value> UDPWrap::SetMembership(const Arguments& args,
237237
assert(args.Length() == 2);
238238

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

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

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

250250
if (r)

0 commit comments

Comments
 (0)