summaryrefslogtreecommitdiff
path: root/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-08-12 19:46:36 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-08-12 19:46:36 +0000
commit5cf2a8010d69b5c1080390b58453bbfe3a4f2823 (patch)
tree5e6f2b638380443bdf143e92ef03d0064518d611 /ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
parentfc2688222bf165d490b474a5f5cdabbf9c998916 (diff)
downloadATCD-5cf2a8010d69b5c1080390b58453bbfe3a4f2823.tar.gz
ChangeLogTag: Tue Aug 12 19:45:16 UTC 2008 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp')
-rw-r--r--ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp b/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
index cb82344fd30..c11b1a30f1d 100644
--- a/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
+++ b/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
@@ -17,6 +17,7 @@
#include "ace/Get_Opt.h"
#include "ace/Handle_Set.h"
#include "ace/Log_Record.h"
+#include "ace/Truncate.h"
#include "ace/Message_Block.h"
#include "ace/Reactor.h"
#include "ace/Service_Object.h"
@@ -228,9 +229,10 @@ int AC_Output_Handler::send (ACE_Message_Block *chunk[], size_t &count) {
for (iov_size = 0; iov_size < count; ++iov_size) {
iov[iov_size].iov_base = chunk[iov_size]->rd_ptr ();
- iov[iov_size].iov_len = chunk[iov_size]->length ();
+ iov[iov_size].iov_len =
+ ACE_Utils::truncate_cast<u_long> (chunk[iov_size]->length ());
}
- while (peer ().sendv_n (iov, iov_size) == -1)
+ while (peer ().sendv_n (iov, ACE_Utils::truncate_cast<int> (iov_size)) == -1)
if (connector_->reconnect () == -1) {
result = -1;
break;