diff options
Diffstat (limited to 'TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp index 85ec4180e9f..0fce694b649 100644 --- a/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp +++ b/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp @@ -4,6 +4,7 @@ #include "Counting_Supplier.h" #include "orbsvcs/CosEvent/CEC_EventChannel.h" #include "orbsvcs/CosEvent/CEC_Default_Factory.h" +#include "ace/Argv_Type_Converter.h" ACE_RCSID( CEC_Tests_Basic, Shutdown, @@ -14,8 +15,10 @@ static void run_test (PortableServer::POA_ptr poa, ACE_ENV_ARG_DECL); int -main (int argc, char* argv[]) +ACE_TMAIN (int argc, ACE_TCHAR* argv[]) { + ACE_Argv_Type_Converter convert (argc, argv); + TAO_CEC_Default_Factory::init_svcs (); ACE_DECLARE_NEW_CORBA_ENV; @@ -23,7 +26,7 @@ main (int argc, char* argv[]) { // ORB initialization boiler plate... CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER); + CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; CORBA::Object_var object = @@ -115,7 +118,7 @@ run_test (PortableServer::POA_ptr poa, ACE_NEW (consumer, CEC_Counting_Consumer*[n]); ACE_NEW (supplier, CEC_Counting_Supplier*[n]); - int i = 0; + int i; for (i = 0; i != n; ++i) { char consumer_name[64]; |