summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-08-14 13:48:28 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-08-14 13:48:28 +0200
commit6dc3b2a657d4d1c98f549395643d68b834a776a4 (patch)
tree52a24449283cc6da5a90e7196f755c6a6aaa41e7 /src
parenta3f27400ded11fa14df98943cc412635d7d175ee (diff)
Compilation error on FreeBSD fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/ip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ip.cpp b/src/ip.cpp
index b7e3380..8e0c064 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -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;
}