summaryrefslogtreecommitdiff
path: root/examples/Shared_Malloc/Options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Shared_Malloc/Options.cpp')
-rw-r--r--examples/Shared_Malloc/Options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Shared_Malloc/Options.cpp b/examples/Shared_Malloc/Options.cpp
index 90a84b458e0..3338c55a810 100644
--- a/examples/Shared_Malloc/Options.cpp
+++ b/examples/Shared_Malloc/Options.cpp
@@ -160,13 +160,13 @@ Options::parse_args (int argc, char *argv[])
this->use_sbrk_ = 0;
break;
case 'L':
- this->max_msg_size_ = ACE_OS::atoi (get_opt.optarg);
+ this->max_msg_size_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'm':
this->use_mmap_ = 1;
break;
case 'n':
- this->iteration_count_ = ACE_OS::atoi (get_opt.optarg);
+ this->iteration_count_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'p': // Spawn processes rather than threads
this->spawn_threads_ = 0;
@@ -176,7 +176,7 @@ Options::parse_args (int argc, char *argv[])
this->use_shmem_ = 1;
break;
case 't':
- this->spawn_count_ = ACE_OS::atoi (get_opt.optarg);
+ this->spawn_count_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'T':
ACE_Trace::start_tracing ();