summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-07-23 17:56:15 +0000
committerSteve Huston <shuston@riverace.com>1997-07-23 17:56:15 +0000
commit0185785931c5782e1483d242066a8a329d846920 (patch)
treeeec07cc666fd31a889381df0f82a84d174911076
parent2dfe3882158693e982913de9d9332d06d89c7aa0 (diff)
downloadATCD-0185785931c5782e1483d242066a8a329d846920.tar.gz
Added 'const' to char * initialized from a string literal.
-rw-r--r--examples/IOStream/client/iostream_client.cpp2
-rw-r--r--netsvcs/clients/Logger/indirect_logging.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/IOStream/client/iostream_client.cpp b/examples/IOStream/client/iostream_client.cpp
index d74113861e4..919611794ff 100644
--- a/examples/IOStream/client/iostream_client.cpp
+++ b/examples/IOStream/client/iostream_client.cpp
@@ -4,7 +4,7 @@
int main (int argc, char *argv[])
{
#if !defined (ACE_LACKS_ACE_IOSTREAM)
- char *server_host = argc > 1 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
+ const char *server_host = argc > 1 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
u_short server_port = argc > 2 ? ACE_OS::atoi (argv[2]) : ACE_DEFAULT_SERVER_PORT;
ACE_IOStream_T<ACE_SOCK_Stream> server;
diff --git a/netsvcs/clients/Logger/indirect_logging.cpp b/netsvcs/clients/Logger/indirect_logging.cpp
index 376e94db74e..360e3a22621 100644
--- a/netsvcs/clients/Logger/indirect_logging.cpp
+++ b/netsvcs/clients/Logger/indirect_logging.cpp
@@ -10,9 +10,9 @@
int
main (int argc, char *argv[])
{
- char *prog_name = argv[0];
+ const char *prog_name = argv[0];
int iterations = argc < 2 ? 10 : ACE_OS::atoi (argv[1]);
- char *logger_key = argc < 3 ? ACE_DEFAULT_RENDEZVOUS : argv[2];
+ const char *logger_key = argc < 3 ? ACE_DEFAULT_RENDEZVOUS : argv[2];
ACE_OS::srand ((u_int) ACE_OS::time (0));