diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-05-21 22:51:16 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-05-21 22:51:16 +0000 |
| commit | bd39f1969cb4d3314f98ec63723b9cdae67f1e51 (patch) | |
| tree | f30d6437e7f9e573d6ab191393d2e4831097f55a /cpp/src/qpid | |
| parent | 1668936f1979d1d8065e4e4948bd7db278b7ce14 (diff) | |
| download | qpid-python-bd39f1969cb4d3314f98ec63723b9cdae67f1e51.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/src/qpid')
| -rwxr-xr-x | cpp/src/qpid/sys/posix/SystemInfo.cpp | 2 |
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) { |
