summaryrefslogtreecommitdiff
path: root/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netsvcs/clients/Tokens/rw_lock/rw_locks.cpp')
-rw-r--r--netsvcs/clients/Tokens/rw_lock/rw_locks.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp b/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
index f9d8da9eb9c..098d2bd9d84 100644
--- a/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
+++ b/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
@@ -150,21 +150,21 @@ parse_args (int argc, char *argv[])
switch (c)
{
case 'h': // specify the host machine on which the server is running
- server_host = get_opt.optarg;
+ server_host = get_opt.opt_arg ();
remote = 1;
break;
case 'p': // specify the port on which the server is running
- server_port = ACE_OS::atoi (get_opt.optarg);
+ server_port = ACE_OS::atoi (get_opt.opt_arg ());
remote = 1;
break;
case 't':
- threads = ACE_OS::atoi (get_opt.optarg);
+ threads = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'R':
renew = 1;
break;
case 'r':
- reads = ACE_OS::atoi (get_opt.optarg);
+ reads = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'd':
debug = 1;
@@ -173,7 +173,7 @@ parse_args (int argc, char *argv[])
write_sleep = 1;
break;
case 'n':
- iterations = ACE_OS::atoi (get_opt.optarg);
+ iterations = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 'i':
ignore_deadlock = 1;