summaryrefslogtreecommitdiff
path: root/examples/Threads/recursive_mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Threads/recursive_mutex.cpp')
-rw-r--r--examples/Threads/recursive_mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/Threads/recursive_mutex.cpp b/examples/Threads/recursive_mutex.cpp
index ef019fdc3fb..33a276207dd 100644
--- a/examples/Threads/recursive_mutex.cpp
+++ b/examples/Threads/recursive_mutex.cpp
@@ -38,10 +38,10 @@ parse_args (int argc, ACE_TCHAR *argv[])
switch (c)
{
case 'n':
- n_iterations = ACE_OS::atoi (get_opt.optarg);
+ n_iterations = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 't':
- n_threads = ACE_OS::atoi (get_opt.optarg);
+ n_threads = ACE_OS::atoi (get_opt.opt_arg ());
break;
default:
print_usage_and_die ();