summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Log_Msg/test_log_msg.cpp2
-rw-r--r--examples/Naming/test_multiple_contexts.cpp3
-rw-r--r--examples/Naming/test_non_existent.cpp2
-rw-r--r--examples/Naming/test_open.cpp3
-rw-r--r--examples/Naming/test_writers.cpp3
5 files changed, 8 insertions, 5 deletions
diff --git a/examples/Log_Msg/test_log_msg.cpp b/examples/Log_Msg/test_log_msg.cpp
index 09f0e913a63..f6186fad67d 100644
--- a/examples/Log_Msg/test_log_msg.cpp
+++ b/examples/Log_Msg/test_log_msg.cpp
@@ -169,7 +169,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG,
"This LM_DEBUG message should not print!\n"));
- const char badname[] = "badname";
+ char badname[] = "badname";
char *l_argv[2];
l_argv[0] = badname;
diff --git a/examples/Naming/test_multiple_contexts.cpp b/examples/Naming/test_multiple_contexts.cpp
index 828cea2c030..081ea12e03f 100644
--- a/examples/Naming/test_multiple_contexts.cpp
+++ b/examples/Naming/test_multiple_contexts.cpp
@@ -55,7 +55,8 @@ int main (int, char *[])
int n_argc =
sizeof (n_argv) / sizeof (char *) -1;
- name_options->parse_args (m_argc, m_argv);
+ name_options->parse_args (m_argc,
+ m_argv);
i = ns_ptr->open (ACE_Naming_Context::NODE_LOCAL);
ACE_DEBUG ((LM_DEBUG,
diff --git a/examples/Naming/test_non_existent.cpp b/examples/Naming/test_non_existent.cpp
index f8785ad0f81..c2ffb5cd0b6 100644
--- a/examples/Naming/test_non_existent.cpp
+++ b/examples/Naming/test_non_existent.cpp
@@ -31,7 +31,7 @@ int main (int, char *[])
sizeof (m_argv) / sizeof (char *) -1;
name_options->parse_args (m_argc,
- (char **) m_argv);
+ m_argv);
i = ns_ptr->open (ACE_Naming_Context::NODE_LOCAL);
ACE_DEBUG ((LM_DEBUG,
diff --git a/examples/Naming/test_open.cpp b/examples/Naming/test_open.cpp
index adcc1fb0962..6e9a01c42a1 100644
--- a/examples/Naming/test_open.cpp
+++ b/examples/Naming/test_open.cpp
@@ -24,7 +24,8 @@ main (int argc, char **argv)
int m_argc =
sizeof (m_argv) / sizeof (char *) -1;
- name_options->parse_args (m_argc, m_argv);
+ name_options->parse_args (m_argc,
+ m_argv);
int result = ns.open (ACE_Naming_Context::NET_LOCAL);
ACE_DEBUG ((LM_DEBUG,
diff --git a/examples/Naming/test_writers.cpp b/examples/Naming/test_writers.cpp
index 1a23d2e91f8..7da15473547 100644
--- a/examples/Naming/test_writers.cpp
+++ b/examples/Naming/test_writers.cpp
@@ -24,7 +24,8 @@ int main (int, char *[])
int m_argc = sizeof (m_argv) / sizeof (char *) -1;
- name_options->parse_args (m_argc,m_argv);
+ name_options->parse_args (m_argc,
+ m_argv);
i = ns_ptr->open (ACE_Naming_Context::NODE_LOCAL);
ACE_DEBUG ((LM_DEBUG,
"(%P) opened with %d\n",