summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.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/Security/ssliop_corbaloc/client.cpp
parent1c3dd540264435be21072a3a69a8a8e969bd2b1a (diff)
downloadATCD-oci_wchar_refactor_post_1_5_1_branch.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/Security/ssliop_corbaloc/client.cpp')
-rw-r--r--TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
index 904a68a489b..a81edd2f705 100644
--- a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
+++ b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
@@ -21,6 +21,7 @@
#include "client.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple_Naming, client, "$Id$")
@@ -90,7 +91,7 @@ CosNaming_Client::CosNaming_Client (void)
int
CosNaming_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "p:dstieym:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "p:dstieym:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -146,7 +147,7 @@ CosNaming_Client::parse_args (void)
if (this->test_ == 0)
{
FILE * ior_output_file =
- ACE_OS::fopen (get_opts.opt_arg (), "w");
+ ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (ior_output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -1268,11 +1269,13 @@ Persistent_Test_End::execute (TAO_Naming_Client &root_context)
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CosNaming_Client cosnaming_client;
- if (cosnaming_client.init (argc, argv) == -1)
+ if (cosnaming_client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return cosnaming_client.run ();