Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From b1b16d117e6fe2ca889d10e7e0b62a5a60997d57 Mon Sep 17 00:00:00 2001
From: isaacs <i@izs.me>
Date: Mon, 23 Jan 2012 15:44:53 -0800
Subject: [PATCH] udp: 'interface' is reserved word on windows.
---
src/udp_wrap.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc
index c3099d6..cab42b3 100644
--- a/src/udp_wrap.cc
+++ b/src/udp_wrap.cc
@@ -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)
--
1.7.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.