summaryrefslogtreecommitdiff
path: root/ACE/examples/QOS
diff options
context:
space:
mode:
authorolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-12-20 20:59:56 +0000
committerolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-12-20 20:59:56 +0000
commit1599c86adf221f6c7d569b21ac911ff5e4a75464 (patch)
treecaa16b0e17dd33d83fe22289d70032cbfa5d6e43 /ACE/examples/QOS
parent6439ef2560d944c077e7c604281b529fcdb26493 (diff)
downloadATCD-1599c86adf221f6c7d569b21ac911ff5e4a75464.tar.gz
ChangeLogTag: Mon Dec 20 20:58:26 UTC 2010 Olli Savia <ops@iki.fi>
Diffstat (limited to 'ACE/examples/QOS')
-rw-r--r--ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp4
-rw-r--r--ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp4
-rw-r--r--ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp4
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));