summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-11-22 22:57:39 +0000
committerSteve Huston <shuston@riverace.com>1997-11-22 22:57:39 +0000
commit55350c5c265a5131d138eef5bf4d236569f04e7a (patch)
tree0377803c5fe25bb37b707060993efe7a1a4e8896
parentd933019404a13d0acec26f4ba19a28b94c4c85e8 (diff)
downloadATCD-55350c5c265a5131d138eef5bf4d236569f04e7a.tar.gz
Added const to char * - can't init a char * from a const string.
-rw-r--r--examples/Threads/process_semaphore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Threads/process_semaphore.cpp b/examples/Threads/process_semaphore.cpp
index a5249083344..d6ad0c76159 100644
--- a/examples/Threads/process_semaphore.cpp
+++ b/examples/Threads/process_semaphore.cpp
@@ -17,7 +17,7 @@ handler (int)
int
main (int argc, char *argv[])
{
- char *name = argc == 1 ? "hello" : argv[1];
+ const char *name = argc == 1 ? "hello" : argv[1];
int iterations = argc > 2 ? ACE_OS::atoi (argv[2]) : 100;
ACE_Process_Semaphore pm (1, name);