summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Event_Service
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:55:59 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:55:59 +0000
commitd200c2051c92cc193fdebaabd9c4b80935f33496 (patch)
tree1534aad8ba29d75881ad6f4ab980fb04525b42f3 /TAO/orbsvcs/Event_Service
parentc13d83545ee97972e556b1fdc6eb81c318435f76 (diff)
downloadATCD-d200c2051c92cc193fdebaabd9c4b80935f33496.tar.gz
ChangeLogTag:Wed Dec 26 09:07:45 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/Event_Service')
-rw-r--r--TAO/orbsvcs/Event_Service/Event_Service.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/orbsvcs/Event_Service/Event_Service.cpp b/TAO/orbsvcs/Event_Service/Event_Service.cpp
index c1cc83f3424..67c15f96355 100644
--- a/TAO/orbsvcs/Event_Service/Event_Service.cpp
+++ b/TAO/orbsvcs/Event_Service/Event_Service.cpp
@@ -260,15 +260,15 @@ Event_Service::parse_args (int argc, char *argv [])
switch (opt)
{
case 'n':
- this->service_name_ = get_opt.optarg;
+ this->service_name_ = get_opt.opt_arg ();
break;
case 'o':
- this->ior_file_name_ = get_opt.optarg;
+ this->ior_file_name_ = get_opt.opt_arg ();
break;
case 'p':
- this->pid_file_name_ = get_opt.optarg;
+ this->pid_file_name_ = get_opt.opt_arg ();
break;
case 's':
@@ -276,11 +276,11 @@ Event_Service::parse_args (int argc, char *argv [])
// argument, but this is consistent with the EC_Multiple
// test and also allows for a runtime scheduling service.
- if (ACE_OS::strcasecmp (get_opt.optarg, "global") == 0)
+ if (ACE_OS::strcasecmp (get_opt.opt_arg (), "global") == 0)
{
this->global_scheduler_ = 1;
}
- else if (ACE_OS::strcasecmp (get_opt.optarg, "local") == 0)
+ else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "local") == 0)
{
this->global_scheduler_ = 0;
}
@@ -289,21 +289,21 @@ Event_Service::parse_args (int argc, char *argv [])
ACE_DEBUG ((LM_DEBUG,
"Unknown scheduling type <%s> "
"defaulting to local\n",
- get_opt.optarg));
+ get_opt.opt_arg ()));
this->global_scheduler_ = 0;
}
break;
case 't':
- if (ACE_OS::strcasecmp (get_opt.optarg, "NEW") == 0)
+ if (ACE_OS::strcasecmp (get_opt.opt_arg (), "NEW") == 0)
{
this->event_service_type_ = ES_NEW;
}
- else if (ACE_OS::strcasecmp (get_opt.optarg, "OLD_REACTIVE") == 0)
+ else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "OLD_REACTIVE") == 0)
{
this->event_service_type_ = ES_OLD_REACTIVE;
}
- else if (ACE_OS::strcasecmp (get_opt.optarg, "OLD_MT") == 0)
+ else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "OLD_MT") == 0)
{
this->event_service_type_ = ES_OLD_MT;
}
@@ -312,7 +312,7 @@ Event_Service::parse_args (int argc, char *argv [])
ACE_DEBUG ((LM_DEBUG,
"Unknown event service type <%s> "
"defaulting to REACTIVE\n",
- get_opt.optarg));
+ get_opt.opt_arg ()));
this->event_service_type_ = ES_NEW;
}
break;