summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-08-10 16:09:51 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-08-10 16:09:51 +0000
commitb39017adade3c47e5362f21bc6d49c34ce363bd2 (patch)
treeb502da9667e265b8220a6fc12c270f0a9c26b5dd /apps
parent20d18857b0a30f68bcd009b79807806b458d830e (diff)
downloadATCD-b39017adade3c47e5362f21bc6d49c34ce363bd2.tar.gz
ChangeLogTag: Fri Aug 10 11:06:23 2001 Chad Elliott elliott_c@ociweb.com
Diffstat (limited to 'apps')
-rw-r--r--apps/drwho/CM_Client.cpp5
-rw-r--r--apps/drwho/CM_Server.cpp6
-rw-r--r--apps/drwho/server.cpp2
3 files changed, 7 insertions, 6 deletions
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;
}