summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
diff options
context:
space:
mode:
authorjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
committerjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
commitd1160e68b1301a8b0e120ba8da56bb2e7d4fb49e (patch)
treecf04398acb7ad9fb45311eb105d60975028bbc03 /TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
parent1c3dd540264435be21072a3a69a8a8e969bd2b1a (diff)
downloadATCD-d1160e68b1301a8b0e120ba8da56bb2e7d4fb49e.tar.gz
Fri May 5 14:33:29 UTC 2006 Ciju John <john_c@ociweb.com>oci_wchar_refactor_post_1_5_1_branch
Diffstat (limited to 'TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp')
-rw-r--r--TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
index 1fcb246b5ea..496e9a257da 100644
--- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
+++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/Read_Buffer.h"
@@ -121,7 +122,7 @@ ECM_Driver::run (int argc, char* argv[])
if (this->pid_filename_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_filename_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_filename_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -339,9 +340,9 @@ ECM_Driver::dump_results (void)
// ****************************************************************
int
-ECM_Driver::parse_args (int argc, char *argv [])
+ECM_Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "l:p:c:n:t:f:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "l:p:c:n:t:f:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -414,7 +415,7 @@ ECM_Driver::parse_config_file (void)
{
FILE* cfg = 0;
if (this->config_filename_ != 0)
- cfg = ACE_OS::fopen (this->config_filename_, "r");
+ cfg = ACE_OS::fopen (this->config_filename_, ACE_TEXT("r"));
else
cfg = stdin;
@@ -1150,10 +1151,12 @@ ECM_Local_Federation::subscribed_bit (int i) const
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ECM_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}