summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2010-01-27 08:47:01 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2010-01-27 08:47:01 +0100
commit943125bd12dbf181f4dfce7babddf1af7bcb7e18 (patch)
treeec2e3cef8fc151686a34b87d8d0838abd196ee3e
parentaa27034db5d47f4630f464da53f63a0e62c34daa (diff)
Hard-wired constant on OpenVMS replaced by symbolic constant
-rw-r--r--src/fd_signaler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fd_signaler.cpp b/src/fd_signaler.cpp
index a49dd99..f42b95f 100644
--- a/src/fd_signaler.cpp
+++ b/src/fd_signaler.cpp
@@ -295,8 +295,8 @@ int zmq::fd_signaler_t::socketpair (int domain_, int type_, int protocol_,
// Fill in the localhost address (127.0.0.1).
memset (&lcladdr, 0, sizeof (lcladdr));
lcladdr.sin_family = AF_INET;
- lcladdr.sin_addr.s_addr = 0x0100007f;
- lcladdr.sin_port = INADDR_ANY;
+ lcladdr.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
+ lcladdr.sin_port = 0;
listener = socket (AF_INET, SOCK_STREAM, 0);
errno_assert (listener != -1);