qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1341246 - /qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp
Date Mon, 21 May 2012 22:51:16 GMT
Author: astitcher
Date: Mon May 21 22:51:16 2012
New Revision: 1341246

URL: http://svn.apache.org/viewvc?rev=1341246&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp?rev=1341246&r1=1341245&r2=1341246&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp Mon May 21 22:51:16 2012
@@ -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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message