activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r495449 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp
Date Fri, 12 Jan 2007 00:05:14 GMT
Author: nmittler
Date: Thu Jan 11 16:05:13 2007
New Revision: 495449

URL: http://svn.apache.org/viewvc?view=rev&rev=495449
Log:
AMQCPP-42 - changes to remove strict aliasing warnings on gcc

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp?view=diff&rev=495449&r1=495448&r2=495449
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/ServerSocket.cpp
Thu Jan 11 16:05:13 2007
@@ -159,7 +159,7 @@
     ::setsockopt(socketHandle, SOL_SOCKET, SO_REUSEADDR, (char*)&value, sizeof(int) );
       
     status = ::bind(socketHandle,
-             (sockaddr *)&bind_addr, sizeof( bind_addr ));
+             reinterpret_cast<sockaddr*>(&bind_addr), sizeof( bind_addr ));
 
     if( status < 0 ){
         close();
@@ -205,7 +205,7 @@
     #endif
 
     SocketHandle ss_socket_handle = 
-        ::accept( socketHandle, (struct sockaddr*)&temp, &temp_len );
+        ::accept( socketHandle, reinterpret_cast<struct sockaddr*>(&temp), &temp_len
);
     if( ss_socket_handle < 0 ) {
         throw SocketException( __FILE__, __LINE__, 
             "ServerSocket::accept- %s", ::strerror( errno ) );



Mime
View raw message