summaryrefslogtreecommitdiff
path: root/apps/drwho
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
commitc13d83545ee97972e556b1fdc6eb81c318435f76 (patch)
tree3e074e160a2e59a236f10781cfcb0e071b49fac8 /apps/drwho
parent5a4937548f54d003dc238b834281b3f3b43067dd (diff)
downloadATCD-c13d83545ee97972e556b1fdc6eb81c318435f76.tar.gz
ChangeLogTag:Wed Dec 26 09:07:45 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'apps/drwho')
-rw-r--r--apps/drwho/Options.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/drwho/Options.cpp b/apps/drwho/Options.cpp
index 4b82de0563a..577d35a2b7a 100644
--- a/apps/drwho/Options.cpp
+++ b/apps/drwho/Options.cpp
@@ -88,7 +88,7 @@ Options::set_options (int argc, char *argv[])
Options::print_usage_and_die (0);
/* NOTREACHED */
case 'A':
- Multicast_Manager::add_host (getopt.optarg);
+ Multicast_Manager::add_host (getopt.opt_arg ());
break;
case 'a':
Options::protocol_type = PROTO_ALL;
@@ -100,10 +100,10 @@ Options::set_options (int argc, char *argv[])
Options::set_opt (Options::DEBUG);
break;
case 'f':
- Options::friend_file = getopt.optarg;
+ Options::friend_file = getopt.opt_arg ();
break;
case 'F':
- if (Multicast_Manager::insert_hosts_from_file (getopt.optarg) < 0)
+ if (Multicast_Manager::insert_hosts_from_file (getopt.opt_arg ()) < 0)
ACE_DEBUG ((LM_DEBUG,
"%p%a\n",
Options::program_name,
@@ -111,7 +111,7 @@ Options::set_options (int argc, char *argv[])
add_default_hosts = 0;
break;
case 'H':
- Multicast_Manager::add_host (getopt.optarg);
+ Multicast_Manager::add_host (getopt.opt_arg ());
add_default_hosts = 0;
break;
case 'h':
@@ -124,7 +124,7 @@ Options::set_options (int argc, char *argv[])
Options::set_opt (Options::USE_VERBOSE_FORMAT);
break;
case 'p':
- Options::port_number = atoi (getopt.optarg);
+ Options::port_number = atoi (getopt.opt_arg ());
break;
case 'R':
Options::protocol_type = PROTO_RUSER;
@@ -139,10 +139,10 @@ Options::set_options (int argc, char *argv[])
Options::set_opt (Options::SORT_BY_REAL_NAME);
break;
case 't':
- Options::max_server_timeout = atoi (getopt.optarg);
+ Options::max_server_timeout = atoi (getopt.opt_arg ());
break;
case 'w':
- Options::user_name = getopt.optarg;
+ Options::user_name = getopt.opt_arg ();
Options::protocol_type = PROTO_USR;
break;
default: