summaryrefslogtreecommitdiff
path: root/flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-02-11 02:18:52 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-02-11 02:18:52 +0000
commit28f6e4cfda9a246d3eeba7abdbee5917948db035 (patch)
tree60aaa2c0343d3bc5f3fa707054178dfb47de443e /flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
parente8d57db2a6332be9802c4e4b02d086e9f4a7c101 (diff)
downloadATCD-28f6e4cfda9a246d3eeba7abdbee5917948db035.tar.gz
ChangeLogTag: Wed Feb 11 02:15:21 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>prism_import
Diffstat (limited to 'flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp')
-rw-r--r--flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp b/flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
index 218db8f4ae9..0b98f53156c 100644
--- a/flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
+++ b/flat/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
@@ -27,11 +27,12 @@ int niterations = 100;
int do_dump_history = 0;
int
-parse_args (int argc, char *argv[])
+parse_args (int argc, ACE_TCHAR *argv[])
{
- //parse arguments
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
- char c;
+ // Parse arguments.
+ ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("hxk:i:"));
+ int c;
+
while ((c = get_opts ()) != -1)
switch (c)
{
@@ -52,6 +53,7 @@ parse_args (int argc, char *argv[])
/* Could be any other parameter like -ORBSvcConf file so ignore */
break;
}
+
// Indicates sucessful parsing of the command line
return 0;
}
@@ -83,7 +85,7 @@ set_priority ()
int
-ACE_TMAIN(int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
try
{
@@ -91,8 +93,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
set_priority();
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
if (parse_args(argc, argv) == -1)
{