0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 23:51:04 +08:00

Rename udp_address::interface to iface for VS2015 build.

Resolves #1739.
This commit is contained in:
Joe Eli McIlvain 2016-01-29 19:50:04 -08:00
parent b784943f90
commit cf5c288dda
2 changed files with 4 additions and 4 deletions

View File

@ -100,8 +100,8 @@ int zmq::udp_address_t::resolve (const char *name_)
else
is_mutlicast = false;
interface.s_addr = htons (INADDR_ANY);
if (interface.s_addr == INADDR_NONE) {
iface.s_addr = htons (INADDR_ANY);
if (iface.s_addr == INADDR_NONE) {
errno = EINVAL;
return -1;
}
@ -153,7 +153,7 @@ const in_addr zmq::udp_address_t::multicast_ip () const
const in_addr zmq::udp_address_t::interface_ip () const
{
return interface;
return iface;
}
#if defined ZMQ_HAVE_WINDOWS

View File

@ -73,7 +73,7 @@ namespace zmq
private:
in_addr multicast;
in_addr interface;
in_addr iface;
sockaddr_in bind_address;
sockaddr_in dest_address;
bool is_mutlicast;