summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Simple/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall/Simple/client.cpp')
-rw-r--r--TAO/tests/NestedUpcall/Simple/client.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/TAO/tests/NestedUpcall/Simple/client.cpp b/TAO/tests/NestedUpcall/Simple/client.cpp
index 90152bf511b..b80fa3a78b3 100644
--- a/TAO/tests/NestedUpcall/Simple/client.cpp
+++ b/TAO/tests/NestedUpcall/Simple/client.cpp
@@ -6,7 +6,7 @@
ACE_RCSID(Simple, client, "$Id$")
-static const char *ior = "file://test.ior";
+static const ACE_TCHAR *ior = ACE_TEXT ("file://test.ior");
// Server IOR.
static int shutdown_server = 0;
@@ -61,7 +61,7 @@ Client_Task::svc (void)
static int
parse_args (int argc,
- char **argv)
+ ACE_TCHAR **argv)
{
ACE_Get_Opt get_opts (argc, argv, "qxn:k:");
int c;
@@ -109,17 +109,14 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
try
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
- 0);
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
- int result = parse_args (argc,
- argv);
+ int result = parse_args (argc, argv);
if (result != 0)
return result;
@@ -133,7 +130,7 @@ main (int argc,
poa_manager->activate ();
- object = orb->string_to_object (ior);
+ object = orb->string_to_object (ACE_TEXT_ALWAYS_CHAR (ior));
server_var server = server::_narrow (object.in ());