summaryrefslogtreecommitdiff
path: root/ACE/ace/Name_Request_Reply.cpp
diff options
context:
space:
mode:
authormitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-08 22:18:09 +0000
committermitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-08 22:18:09 +0000
commit9e2e5f30a6814f0ae79723141837ce4c006d0a8a (patch)
tree55072664b9e6000b90d580998e63c74a2bd99a2b /ACE/ace/Name_Request_Reply.cpp
parent94bbde6132926d65bedb83b6788d30a33e90a8ec (diff)
downloadATCD-9e2e5f30a6814f0ae79723141837ce4c006d0a8a.tar.gz
ChangeLogTag: Wed Aug 8 22:13:55 UTC 2012 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'ACE/ace/Name_Request_Reply.cpp')
-rw-r--r--ACE/ace/Name_Request_Reply.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/ACE/ace/Name_Request_Reply.cpp b/ACE/ace/Name_Request_Reply.cpp
index c046fae75ec..43c61e79303 100644
--- a/ACE/ace/Name_Request_Reply.cpp
+++ b/ACE/ace/Name_Request_Reply.cpp
@@ -48,7 +48,8 @@ ACE_Name_Request::ACE_Name_Request (
this->block_forever (0);
// Keep track of how long client is willing to wait.
this->transfer_.sec_timeout_ = timeout->sec ();
- this->transfer_.usec_timeout_ = timeout->usec ();
+ this->transfer_.usec_timeout_ =
+ static_cast<ACE_UINT32> (timeout->usec ());
}
// Set up pointers and copy name value and type into request.
@@ -195,7 +196,7 @@ ACE_Name_Request::timeout (const ACE_Time_Value timeout)
{
ACE_TRACE ("ACE_Name_Request::timeout");
this->transfer_.sec_timeout_ = timeout.sec ();
- this->transfer_.usec_timeout_ = timeout.usec ();
+ this->transfer_.usec_timeout_ = static_cast<ACE_UINT32> (timeout.usec ());
}
// = Set/get the name
@@ -270,7 +271,7 @@ ACE_Name_Request::encode (void *&buf)
for (size_t i = 0; i < nv_data_len; i++)
this->transfer_.data_[i] =
- ACE_HTONS (this->transfer_.data_[i]);
+ static_cast<ACE_WCHAR_T> (ACE_HTONS (this->transfer_.data_[i]));
buf = (void *) &this->transfer_;
this->transfer_.block_forever_ = ACE_HTONL (this->transfer_.block_forever_);
@@ -314,7 +315,7 @@ ACE_Name_Request::decode (void)
for (size_t i = 0; i < nv_data_len; i++)
this->transfer_.data_[i] =
- ACE_NTOHS (this->transfer_.data_[i]);
+ static_cast<ACE_WCHAR_T> (ACE_NTOHS (this->transfer_.data_[i]));
this->name_ = this->transfer_.data_;
this->value_ = &this->name_[this->transfer_.name_len_ / sizeof (ACE_WCHAR_T)];