summaryrefslogtreecommitdiff
path: root/TAO/tests/Client_Leaks/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Client_Leaks/client.cpp')
-rw-r--r--TAO/tests/Client_Leaks/client.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/TAO/tests/Client_Leaks/client.cpp b/TAO/tests/Client_Leaks/client.cpp
index cd4765cd026..9366170a104 100644
--- a/TAO/tests/Client_Leaks/client.cpp
+++ b/TAO/tests/Client_Leaks/client.cpp
@@ -19,24 +19,24 @@ parse_args (int argc, char *argv[])
switch (c)
{
case 'k':
- ior = get_opts.optarg;
- break;
+ ior = get_opts.optarg;
+ break;
case 'i':
- iterations = ACE_OS::atoi (get_opts.optarg);
- break;
+ iterations = ACE_OS::atoi (get_opts.optarg);
+ break;
case 'n':
- threads = ACE_OS::atoi (get_opts.optarg);
- break;
+ threads = ACE_OS::atoi (get_opts.optarg);
+ break;
case '?':
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
- "-k <ior> "
- "-i <iterations> "
- "-i <threads> "
+ "-k <ior> "
+ "-i <iterations> "
+ "-i <threads> "
"\n",
argv [0]),
-1);
@@ -51,18 +51,18 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
return 1;
CORBA::Object_var tmp =
- orb->string_to_object(ior, ACE_TRY_ENV);
+ orb->string_to_object(ior TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Test::Process_Factory_var process_factory =
- Test::Process_Factory::_narrow(tmp.in (), ACE_TRY_ENV);
+ Test::Process_Factory::_narrow(tmp.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (process_factory.in ()))
@@ -83,10 +83,10 @@ main (int argc, char *argv[])
}
ACE_Thread_Manager::instance ()->wait ();
- process_factory->shutdown (ACE_TRY_ENV);
+ process_factory->shutdown (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->destroy (ACE_TRY_ENV);
+ orb->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Only pass the test if 90% of the calls worked