diff options
Diffstat (limited to 'examples/Threads/reader_writer.cpp')
-rw-r--r-- | examples/Threads/reader_writer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/Threads/reader_writer.cpp b/examples/Threads/reader_writer.cpp index c5844abac54..34d4cc6ae57 100644 --- a/examples/Threads/reader_writer.cpp +++ b/examples/Threads/reader_writer.cpp @@ -58,16 +58,16 @@ parse_args (int argc, ACE_TCHAR *argv[]) switch (c) { case 'r': - n_readers = ACE_OS::atoi (get_opt.optarg); + n_readers = ACE_OS::atoi (get_opt.opt_arg ()); break; case 'w': - n_writers = ACE_OS::atoi (get_opt.optarg); + n_writers = ACE_OS::atoi (get_opt.opt_arg ()); break; case 'n': - n_iterations = ACE_OS::atoi (get_opt.optarg); + n_iterations = ACE_OS::atoi (get_opt.opt_arg ()); break; case 'l': - n_loops = ACE_OS::atoi (get_opt.optarg); + n_loops = ACE_OS::atoi (get_opt.opt_arg ()); break; default: print_usage_and_die (); |