summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-07-30 05:02:58 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-07-30 05:02:58 +0000
commitf50d0cf3175a6b04805449ae691af15a38a2b696 (patch)
treefe99d4bfa372bab512704ee98568b1af70ad8e6e /examples
parent311c93667ec0550d767f64eec3b1eb730b599aa5 (diff)
downloadATCD-f50d0cf3175a6b04805449ae691af15a38a2b696.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Ntalker/ntalker.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/Reactor/Ntalker/ntalker.cpp b/examples/Reactor/Ntalker/ntalker.cpp
index a58eedf2d4e..05be803c3c7 100644
--- a/examples/Reactor/Ntalker/ntalker.cpp
+++ b/examples/Reactor/Ntalker/ntalker.cpp
@@ -183,10 +183,11 @@ main (int argc, char *argv[])
// Register the STDIN handler.
if (ACE::register_stdin_handler (&handler,
ACE_Reactor::instance (),
- ACE_Thread_Manager::instance () == -1)
+ ACE_Thread_Manager::instance ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
- "register_stdin_handler"));
+ "register_stdin_handler"),
+ -1);
// Run the event loop.
ACE_Reactor::run_event_loop ();
@@ -196,10 +197,11 @@ main (int argc, char *argv[])
// Cleanup the STDIN handler.
if (ACE::remove_stdin_handler (ACE_Reactor::instance (),
- ACE_Thread_Manager::instance () == -1)
+ ACE_Thread_Manager::instance ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
- "remove_stdin_handler"));
+ "remove_stdin_handler"),
+ -1);
return 0;
}
#else