From 8c86d305f539af6a382707b6ae2323c1bb326414 Mon Sep 17 00:00:00 2001 From: oci Date: Fri, 10 Aug 2001 16:09:51 +0000 Subject: ChangeLogTag: Fri Aug 10 11:06:23 2001 Chad Elliott elliott_c@ociweb.com --- apps/drwho/CM_Client.cpp | 5 +++-- apps/drwho/CM_Server.cpp | 6 +++--- apps/drwho/server.cpp | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/drwho/CM_Client.cpp b/apps/drwho/CM_Client.cpp index f236d29b5a1..8bdc9cec179 100644 --- a/apps/drwho/CM_Client.cpp +++ b/apps/drwho/CM_Client.cpp @@ -52,7 +52,8 @@ CM_Client::receive (int timeout) this->recv_packet_, UDP_PACKET_SIZE, 0, - (sockaddr *) &this->sin_, + ACE_reinterpret_cast (sockaddr *, + &this->sin_), &sin_len); if (n < 0) return -1; @@ -115,7 +116,7 @@ CM_Client::send (void) this->send_packet_, packet_length, 0, - (sockaddr *) &this->sin_, + ACE_reinterpret_cast (sockaddr *, &this->sin_), sizeof this->sin_) < 0) return -1; } diff --git a/apps/drwho/CM_Server.cpp b/apps/drwho/CM_Server.cpp index 647e74fede8..0cf6b9b9df2 100644 --- a/apps/drwho/CM_Server.cpp +++ b/apps/drwho/CM_Server.cpp @@ -25,7 +25,7 @@ CM_Server::open (short port_number) // This call fails if an rflo daemon is already running. if (ACE_OS::bind (this->sokfd_, - (sockaddr *) &this->sin_, + ACE_reinterpret_cast (sockaddr *, &this->sin_), sizeof this->sin_) < 0) return -1; @@ -51,7 +51,7 @@ CM_Server::receive (int) this->recv_packet_, UDP_PACKET_SIZE, 0, - (sockaddr *) &this->sin_, + ACE_reinterpret_cast (sockaddr *, &this->sin_), (int *) &sin_len); if (n == -1) return -1; @@ -85,7 +85,7 @@ CM_Server::send (void) this->send_packet_, packet_length, 0, - (sockaddr *) &this->sin_, + ACE_reinterpret_cast (sockaddr *, &this->sin_), sizeof this->sin_) < 0) return -1; diff --git a/apps/drwho/server.cpp b/apps/drwho/server.cpp index f25815fb7b1..41f005354c7 100644 --- a/apps/drwho/server.cpp +++ b/apps/drwho/server.cpp @@ -57,7 +57,7 @@ started_by_inetd (void) int size = sizeof sin; return ACE_OS::getsockname (0, - (sockaddr *) &sin, + ACE_reinterpret_cast (sockaddr *, &sin), &size) == 0; } -- cgit v1.2.1