summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-03-14 12:48:07 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-03-14 12:48:07 +0000
commit9c3aa21350ce11696b5ed6e42506111d5909660e (patch)
treef3ec5811723c2302032292c8bec26547fd60ac7f /examples
parent6893c9286b36c1eb8f532049982993c4d94efcc3 (diff)
downloadATCD-9c3aa21350ce11696b5ed6e42506111d5909660e.tar.gz
ChangeLogTag: Sun Mar 14 12:44:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/WFMO_Reactor/Network_Events.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/Reactor/WFMO_Reactor/Network_Events.cpp b/examples/Reactor/WFMO_Reactor/Network_Events.cpp
index 6a36d35739d..9935679a60f 100644
--- a/examples/Reactor/WFMO_Reactor/Network_Events.cpp
+++ b/examples/Reactor/WFMO_Reactor/Network_Events.cpp
@@ -62,6 +62,7 @@ Network_Handler::Network_Handler (ACE_SOCK_Stream &s)
int result = this->reactor ()->register_handler (this, READ_MASK);
ACE_ASSERT (result == 0);
+ ACE_UNUSED_ARG (result);
}
ACE_HANDLE
@@ -140,6 +141,7 @@ Network_Listener::Network_Listener (void)
int result = this->reactor ()->register_handler (this,
ACE_Event_Handler::ACCEPT_MASK);
ACE_ASSERT (result == 0);
+ ACE_UNUSED_ARG (result);
}
Network_Listener::~Network_Listener (void)
@@ -173,6 +175,7 @@ Network_Listener::handle_input (ACE_HANDLE handle)
1, // restart
reset_new_handle); // reset new handler
ACE_ASSERT (result == 0);
+ ACE_UNUSED_ARG (result);
ACE_DEBUG ((LM_DEBUG, "Remote connection from: "));
remote_address.dump ();
@@ -199,8 +202,8 @@ Network_Listener::handle_close (ACE_HANDLE handle,
int
ACE_TMAIN (int, ACE_TCHAR *[])
{
- Network_Listener *listener =
- new Network_Listener;
+ Network_Listener *listener = 0;
+ listener = new Network_Listener;
ACE_Reactor::run_event_loop ();