diff options
author | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-12-20 20:59:56 +0000 |
---|---|---|
committer | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-12-20 20:59:56 +0000 |
commit | 1599c86adf221f6c7d569b21ac911ff5e4a75464 (patch) | |
tree | caa16b0e17dd33d83fe22289d70032cbfa5d6e43 /ACE/examples/QOS | |
parent | 6439ef2560d944c077e7c604281b529fcdb26493 (diff) | |
download | ATCD-1599c86adf221f6c7d569b21ac911ff5e4a75464.tar.gz |
ChangeLogTag: Mon Dec 20 20:58:26 UTC 2010 Olli Savia <ops@iki.fi>
Diffstat (limited to 'ACE/examples/QOS')
3 files changed, 6 insertions, 6 deletions
diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp index 561746a3641..e3c42d2df90 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp @@ -118,9 +118,9 @@ Sender_QoS_Event_Handler::handle_qos (ACE_HANDLE) // ACE_DEBUG ((LM_DEBUG, // "Getting QOS using ACE_OS::ioctl () succeeds.\n")); - char* msg = "Hello sent on a QoS enabled session !!\n"; + const char msg[] = "Hello sent on a QoS enabled session !!\n"; iovec iov[1]; - iov[0].iov_base = msg; + iov[0].iov_base = const_cast<char *>(msg); iov[0].iov_len = ACE_OS::strlen(msg); size_t bytes_sent = 0; diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp index 1293ec95182..d0aa402ca76 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp @@ -118,9 +118,9 @@ Sender_QoS_Event_Handler::handle_qos (ACE_HANDLE) // ACE_DEBUG ((LM_DEBUG, // "Getting QOS using ACE_OS::ioctl () succeeds.\n")); - char* msg = "Hello sent on a QoS enabled session !!\n"; + const char msg[] = "Hello sent on a QoS enabled session !!\n"; iovec iov[1]; - iov[0].iov_base = msg; + iov[0].iov_base = const_cast<char *>(msg); iov[0].iov_len = ACE_OS::strlen(msg); size_t bytes_sent = 0; diff --git a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp index ee263263220..ff19a21b5c3 100644 --- a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp @@ -118,9 +118,9 @@ Sender_QoS_Event_Handler::handle_qos (ACE_HANDLE) // ACE_DEBUG ((LM_DEBUG, // "Getting QOS using ACE_OS::ioctl () succeeds.\n")); - char* msg = "Hello sent on a QoS enabled session !!\n"; + const char msg[] = "Hello sent on a QoS enabled session !!\n"; iovec iov[1]; - iov[0].iov_base = msg; + iov[0].iov_base = const_cast<char *>(msg); iov[0].iov_len = ACE_Utils::truncate_cast<u_long> (ACE_OS::strlen (msg)); |