diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-08-14 13:48:28 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-08-14 13:48:28 +0200 |
commit | 6dc3b2a657d4d1c98f549395643d68b834a776a4 (patch) | |
tree | 52a24449283cc6da5a90e7196f755c6a6aaa41e7 /src | |
parent | a3f27400ded11fa14df98943cc412635d7d175ee (diff) |
Compilation error on FreeBSD fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ static int resolve_nic_name (struct sockaddr* addr_, char const *interface_, bool ipv4only_) { // TODO: Unused parameter, IPv6 support not implemented for Solaris. - (void) ipv4only; + (void) ipv4only_; // Create a socket. int fd = socket (AF_INET, SOCK_DGRAM, 0); @@ -87,7 +87,7 @@ static int resolve_nic_name (struct sockaddr* addr_, char const *interface_, rc = ioctl (fd, SIOCGLIFADDR, (char*) ifrp); zmq_assert (rc != -1); if (ifrp->lifr_addr.ss_family == AF_INET) { - *addr_ = ((sockaddr_in*) &ifrp->lifr_addr)->sin_addr; + *(sockaddr_in*) addr_ = *(sockaddr_in*) &ifrp->lifr_addr; found = true; break; } |