summaryrefslogtreecommitdiff
path: root/examples/IOStream
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 /examples/IOStream
parent2dfe3882158693e982913de9d9332d06d89c7aa0 (diff)
downloadATCD-0185785931c5782e1483d242066a8a329d846920.tar.gz
Added 'const' to char * initialized from a string literal.
Diffstat (limited to 'examples/IOStream')
-rw-r--r--examples/IOStream/client/iostream_client.cpp2
1 files changed, 1 insertions, 1 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;