summaryrefslogtreecommitdiff
path: root/examples/Misc
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-12-27 19:13:42 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-12-27 19:13:42 +0000
commitd126b57759620bb6352d8fa2f505226a6c28df32 (patch)
treee19a0143d9154685776729aa9069beda807349f4 /examples/Misc
parent852c5935e050e6e6e10c21d33f54f7ef49bc57ef (diff)
downloadATCD-d126b57759620bb6352d8fa2f505226a6c28df32.tar.gz
ChangeLogTag:Wed Dec 27 11:11:02 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'examples/Misc')
-rw-r--r--examples/Misc/test_trace.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/Misc/test_trace.cpp b/examples/Misc/test_trace.cpp
index b4b3a985888..0d34d0d6ab3 100644
--- a/examples/Misc/test_trace.cpp
+++ b/examples/Misc/test_trace.cpp
@@ -13,8 +13,8 @@
// also illustrates how to redirect the output to a file.
//
// = AUTHOR
-// Douglas C. Schmidt <schmidt@cs.wustl.edu> and
-// Irfan Pyarali <irfan@cs.wustl.edu>
+// Douglas C. Schmidt <schmidt@cs.wustl.edu> and
+// Irfan Pyarali <irfan@cs.wustl.edu>
//
// ============================================================================
@@ -39,7 +39,7 @@ public:
ACE_Trace _ ("int recursive (size_t depth)",
__LINE__,
__FILE__);
-
+
if (depth > 0)
return recursive (depth - 1);
else
@@ -58,14 +58,14 @@ private:
};
extern "C"
-void
+void
exithook (void)
{
ACE_DEBUG ((LM_DEBUG,
"we're outta here!\n"));
}
-int
+int
main (int argc, char *argv[])
{
const size_t MAX_DEPTH = argc == 1 ? 10 : atoi (argv[1]);
@@ -103,11 +103,10 @@ main (int argc, char *argv[])
#else
const int MAX_ITERATIONS = argc > 3 ? ACE_OS::atoi (argv[3]) : 10;
- for (size_t i = 0; i < MAX_ITERATIONS; i++)
+ for (int i = 0; i < MAX_ITERATIONS; i++)
task.svc ();
#endif /* ACE_MT_SAFE */
// Destructor automatically called.
return 0;
}
-