summaryrefslogtreecommitdiff
path: root/examples/QOS/Simple/QoS_Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/QOS/Simple/QoS_Util.cpp')
-rw-r--r--examples/QOS/Simple/QoS_Util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/QOS/Simple/QoS_Util.cpp b/examples/QOS/Simple/QoS_Util.cpp
index d75e9343ba6..9a72bf56df1 100644
--- a/examples/QOS/Simple/QoS_Util.cpp
+++ b/examples/QOS/Simple/QoS_Util.cpp
@@ -43,16 +43,16 @@ QoS_Util::parse_args (void)
{
case 'm': // multicast session address.
this->multicast_flag_ = 1;
- this->mult_session_addr_->set (get_opts.optarg);
+ this->mult_session_addr_->set (get_opts.opt_arg ());
break;
case 'n': // to be used by Senders only to specify the destination.
- this->dest_addr_->set (get_opts.optarg);
+ this->dest_addr_->set (get_opts.opt_arg ());
break;
case 'p': // protocol.
- if (ACE_OS::strcasecmp (get_opts.optarg, "tcp") == 0)
+ if (ACE_OS::strcasecmp (get_opts.opt_arg (), "tcp") == 0)
this->protocol_ = IPPROTO_TCP;
else
- if (ACE_OS::strcasecmp (get_opts.optarg, "udp") == 0)
+ if (ACE_OS::strcasecmp (get_opts.opt_arg (), "udp") == 0)
this->protocol_ = IPPROTO_UDP;
else
ACE_DEBUG ((LM_DEBUG,
@@ -60,7 +60,7 @@ QoS_Util::parse_args (void)
"UDP assumed\n"));
break;
case 'P': // sender source port.
- this->source_port_ = ACE_OS::atoi (get_opts.optarg);
+ this->source_port_ = ACE_OS::atoi (get_opts.opt_arg ());
break;
case 'h': // display help for different options.
default: