summaryrefslogtreecommitdiff
path: root/ACE/examples/QOS
diff options
context:
space:
mode:
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));