summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/RtEC/Simple/Service.cpp')
-rw-r--r--TAO/orbsvcs/examples/RtEC/Simple/Service.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp b/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
index 82d7280c387..5df20ad8a45 100644
--- a/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
@@ -44,7 +44,7 @@ main (int argc, char* argv[])
TAO_EC_Event_Channel_Attributes attributes (poa.in (),
poa.in ());
-
+
TAO_EC_Event_Channel ec_impl (attributes);
ec_impl.activate (ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -54,25 +54,25 @@ main (int argc, char* argv[])
ACE_TRY_CHECK;
CORBA::String_var ior =
- orb->object_to_string (event_channel.in (), ACE_TRY_ENV);
+ orb->object_to_string (event_channel.in (), ACE_TRY_ENV);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
- {
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- // Wait for events, using work_pending()/perform_work() may help
+ {
+ FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ if (output_file == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot open output file for writing IOR: %s",
+ ior_output_file),
+ 1);
+ ACE_OS::fprintf (output_file, "%s", ior.in ());
+ ACE_OS::fclose (output_file);
+ }
+
+ // Wait for events, using work_pending()/perform_work() may help
// or using another thread, this example is too simple for that.
orb->run ();
@@ -103,14 +103,14 @@ int parse_args (int argc, char *argv[])
switch (c)
{
case 'o':
- ior_output_file = get_opts.optarg;
- break;
+ ior_output_file = get_opts.optarg;
+ break;
case '?':
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
- "-o <iorfile>"
+ "-o <iorfile>"
"\n",
argv [0]),
-1);