From 1f29fbdbff0de80f6187f35ff8f9f0cab3cf09ad Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 3 Jan 2008 16:58:37 +0100 Subject: Fix for bug 1945, Sun & HP-UX compilation fixes --- cpp/src/Ice/ConnectionFactory.cpp | 6 +++--- cpp/src/Ice/EndpointI.h | 2 +- cpp/src/Ice/Network.cpp | 2 +- cpp/src/Ice/Selector.h | 4 ++-- cpp/src/Ice/TcpAcceptor.h | 2 +- cpp/src/Ice/TcpConnector.h | 2 +- cpp/src/Ice/UdpConnector.h | 2 +- cpp/src/Ice/UdpTransceiver.h | 2 +- cpp/src/IceSSL/AcceptorI.h | 2 +- cpp/src/IceSSL/ConnectorI.h | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp index 39e5a178dd0..d2d38bfc97b 100644 --- a/cpp/src/Ice/ConnectionFactory.cpp +++ b/cpp/src/Ice/ConnectionFactory.cpp @@ -511,7 +511,7 @@ IceInternal::OutgoingConnectionFactory::findConnection(const vectorsecond->endpoint() != p->endpoint) { - _connectionsByEndpoint.insert(make_pair(p->endpoint, q->second)); + _connectionsByEndpoint.insert(pair(p->endpoint, q->second)); } if(defaultsAndOverrides->overrideCompress) @@ -734,8 +734,8 @@ IceInternal::OutgoingConnectionFactory::createConnection(const TransceiverPtr& t Ice::ConnectionIPtr connection = new ConnectionI(_instance, transceiver, ci.endpoint->compress(false), 0, ci.threadPerConnection, _instance->threadPerConnectionStackSize()); - _connections.insert(make_pair(ci, connection)); - _connectionsByEndpoint.insert(make_pair(ci.endpoint, connection)); + _connections.insert(pair(ci, connection)); + _connectionsByEndpoint.insert(pair(ci.endpoint, connection)); return connection; } catch(const Ice::LocalException&) diff --git a/cpp/src/Ice/EndpointI.h b/cpp/src/Ice/EndpointI.h index 63f8c18abf3..530b9a56476 100644 --- a/cpp/src/Ice/EndpointI.h +++ b/cpp/src/Ice/EndpointI.h @@ -24,7 +24,7 @@ #ifdef _WIN32 # include #else -# include // For struct sockaddr_in +# include // For struct sockaddr_storage #endif #include diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp index db66ebc4441..be8e03e6402 100644 --- a/cpp/src/Ice/Network.cpp +++ b/cpp/src/Ice/Network.cpp @@ -243,7 +243,7 @@ getLocalAddresses(ProtocolSupport protocol) memcpy(&addr, &ifr[i].ifr_addr, sizeof(sockaddr_in6)); if(!IN6_IS_ADDR_UNSPECIFIED(&reinterpret_cast(&addr)->sin6_addr)) { - result.push_back(*reinterpret_cast(curr->ifa_addr)); + result.push_back(addr); } } } diff --git a/cpp/src/Ice/Selector.h b/cpp/src/Ice/Selector.h index 4d680f14302..8b76befa1ce 100644 --- a/cpp/src/Ice/Selector.h +++ b/cpp/src/Ice/Selector.h @@ -75,8 +75,8 @@ public: } return false; #else - assert(_pollFdSet[0]->fd == _fdIntrRead); - return _pollFdSet[0]->revents != 0; + assert(_pollFdSet[0].fd == _fdIntrRead); + return _pollFdSet[0].revents != 0; #endif } void setInterrupt(); diff --git a/cpp/src/Ice/TcpAcceptor.h b/cpp/src/Ice/TcpAcceptor.h index 9d2526914f4..6d5991a641d 100644 --- a/cpp/src/Ice/TcpAcceptor.h +++ b/cpp/src/Ice/TcpAcceptor.h @@ -17,7 +17,7 @@ #include #ifndef _WIN32 -# include // For struct sockaddr_storage +# include // For struct sockaddr_storage #endif namespace IceInternal diff --git a/cpp/src/Ice/TcpConnector.h b/cpp/src/Ice/TcpConnector.h index 28c42c064b8..b72674bcecc 100644 --- a/cpp/src/Ice/TcpConnector.h +++ b/cpp/src/Ice/TcpConnector.h @@ -19,7 +19,7 @@ #ifdef _WIN32 # include #else -# include // For struct sockaddr_storage +# include #endif namespace IceInternal diff --git a/cpp/src/Ice/UdpConnector.h b/cpp/src/Ice/UdpConnector.h index b6ca621cfb9..e73be45206f 100644 --- a/cpp/src/Ice/UdpConnector.h +++ b/cpp/src/Ice/UdpConnector.h @@ -18,7 +18,7 @@ #ifdef _WIN32 # include #else -# include // For struct sockaddr_storage +# include // For struct sockaddr_storage #endif namespace IceInternal diff --git a/cpp/src/Ice/UdpTransceiver.h b/cpp/src/Ice/UdpTransceiver.h index ebe9a2f4669..4898c3cc54c 100644 --- a/cpp/src/Ice/UdpTransceiver.h +++ b/cpp/src/Ice/UdpTransceiver.h @@ -18,7 +18,7 @@ #include #ifndef _WIN32 -# include // For struct sockaddr_storage +# include // For struct sockaddr_storage #endif namespace IceInternal diff --git a/cpp/src/IceSSL/AcceptorI.h b/cpp/src/IceSSL/AcceptorI.h index 38d1fcf864e..ce786d81c77 100644 --- a/cpp/src/IceSSL/AcceptorI.h +++ b/cpp/src/IceSSL/AcceptorI.h @@ -17,7 +17,7 @@ #include #ifndef _WIN32 -# include // For struct sockaddr_storage +# include // For struct sockaddr_storage #endif namespace IceSSL diff --git a/cpp/src/IceSSL/ConnectorI.h b/cpp/src/IceSSL/ConnectorI.h index 4102a478c48..9eec1f1e5ae 100644 --- a/cpp/src/IceSSL/ConnectorI.h +++ b/cpp/src/IceSSL/ConnectorI.h @@ -18,7 +18,7 @@ #ifdef _WIN32 # include #else -# include // For struct sockaddr_storage +# include // For struct sockaddr_storage #endif namespace IceSSL -- cgit v1.2.3