diff options
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp')
-rw-r--r-- | TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp index c1d6f600d34..8e4724ef153 100644 --- a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp +++ b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp @@ -26,7 +26,7 @@ int Server_i::parse_args (int argc, char **argv) { - ACE_Get_Opt get_opts (argc, argv, "f:"); + ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:"); int c; while ((c = get_opts ()) != -1) @@ -71,9 +71,9 @@ Server_i::write_iors_to_file (const char *first_ior, ior_output_file_); FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, - "w"); + ACE_TEXT("w")); FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, - "w"); + ACE_TEXT("w")); if (output_file_1 == 0 || output_file_2 == 0) ACE_ERROR_RETURN ((LM_ERROR, @@ -118,8 +118,7 @@ Server_i::init (int argc, char **argv) ACE_TRY { // Initialize the ORB. - orb_ = CORBA::ORB_init (argc, - argv, + orb_ = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; |