summaryrefslogtreecommitdiff
path: root/examples/Mem_Map/IO-tests/test_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Mem_Map/IO-tests/test_io.cpp')
-rw-r--r--examples/Mem_Map/IO-tests/test_io.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Mem_Map/IO-tests/test_io.cpp b/examples/Mem_Map/IO-tests/test_io.cpp
index b60401cc813..11cdceee15f 100644
--- a/examples/Mem_Map/IO-tests/test_io.cpp
+++ b/examples/Mem_Map/IO-tests/test_io.cpp
@@ -40,7 +40,7 @@ print_usage_and_die (void)
{
ACE_OS::fprintf (stderr, "usage: %s"
" [-i input_file] [-o output_file] [-n iteration_count] [-r]\n",
- ACE_TEXT_ALWAYS_CHAR (program_name));
+ ACE_TEXT_TO_CHAR_IN (program_name));
ACE_OS::exit (1);
}
@@ -59,7 +59,7 @@ cleanup (int = 0)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:n:o:r"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:n:o:r"));
for (int c; ((c = get_opt ()) != -1); )
switch (c)
@@ -162,7 +162,7 @@ run_tests (int iterations, FILE *input_fp, FILE *output_fp)
}
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
program_name = ACE::basename (argv[0],
ACE_DIRECTORY_SEPARATOR_CHAR);