summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-05-21 22:51:16 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-05-21 22:51:16 +0000
commitff78cea6147adc2cc7e52787675e67d9c7efa617 (patch)
treef30d6437e7f9e573d6ab191393d2e4831097f55a /cpp
parent3a933c12dc79759223635f432acb83f38003d64d (diff)
downloadqpid-python-ff78cea6147adc2cc7e52787675e67d9c7efa617.tar.gz
QPID-4011: TestIsLocalHost unit_test fails with if machine name resolves to loopback address
Oops - ntohl() can be a macro so specifying ::ntohl() can fail in optimised builds. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1341246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/qpid/sys/posix/SystemInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/SystemInfo.cpp b/cpp/src/qpid/sys/posix/SystemInfo.cpp
index c57f784058..007d0773fc 100755
--- a/cpp/src/qpid/sys/posix/SystemInfo.cpp
+++ b/cpp/src/qpid/sys/posix/SystemInfo.cpp
@@ -65,7 +65,7 @@ static const string TCP("tcp");
// Test IPv4 address for loopback
inline bool IN_IS_ADDR_LOOPBACK(const ::in_addr* a) {
- return ((::ntohl(a->s_addr) & 0xff000000) == 0x7f000000);
+ return ((ntohl(a->s_addr) & 0xff000000) == 0x7f000000);
}
inline bool isLoopback(const ::sockaddr* addr) {