diff options
Diffstat (limited to 'ace/WFMO_Reactor.cpp')
-rw-r--r-- | ace/WFMO_Reactor.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/ace/WFMO_Reactor.cpp b/ace/WFMO_Reactor.cpp index 7ccd0c254f2..2b3e3b86df5 100644 --- a/ace/WFMO_Reactor.cpp +++ b/ace/WFMO_Reactor.cpp @@ -18,8 +18,6 @@ ACE_RCSID(ace, WFMO_Reactor, "$Id$") #include "ace/Auto_Ptr.h" -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - ACE_WFMO_Reactor_Handler_Repository::ACE_WFMO_Reactor_Handler_Repository (ACE_WFMO_Reactor &wfmo_reactor) : wfmo_reactor_ (wfmo_reactor) { @@ -2393,7 +2391,7 @@ ACE_WFMO_Reactor_Notify::handle_signal (int signum, else { ACE_Notification_Buffer *buffer = - reinterpret_cast <ACE_Notification_Buffer *> (mb->base ()); + (ACE_Notification_Buffer *) mb->base (); // If eh == 0 then we've got major problems! Otherwise, we // need to dispatch the appropriate handle_* method on the @@ -2557,7 +2555,7 @@ ACE_WFMO_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh, for (index = 0; index < queue_size; ++index) { - ACE_Message_Block *mb = 0; + ACE_Message_Block *mb; if (-1 == this->message_queue_.dequeue_head (mb)) return -1; // This shouldn't happen... @@ -2606,7 +2604,7 @@ ACE_WFMO_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh, queue_size = local_queue.message_count (); for (index = 0; index < queue_size; ++index) { - ACE_Message_Block *mb = 0; + ACE_Message_Block *mb; if (-1 == local_queue.dequeue_head (mb)) { ACE_ASSERT (0); @@ -2678,22 +2676,28 @@ ACE_WFMO_Reactor::resumable_handler (void) // No-op WinSOCK2 methods to help WFMO_Reactor compile #if !defined (ACE_HAS_WINSOCK2) || (ACE_HAS_WINSOCK2 == 0) int -WSAEventSelect (SOCKET /* s */, - WSAEVENT /* hEventObject */, - long /* lNetworkEvents */) +WSAEventSelect (SOCKET s, + WSAEVENT hEventObject, + long lNetworkEvents) { + ACE_UNUSED_ARG (s); + ACE_UNUSED_ARG (hEventObject); + ACE_UNUSED_ARG (lNetworkEvents); + return -1; } int -WSAEnumNetworkEvents (SOCKET /* s */, - WSAEVENT /* hEventObject */, - LPWSANETWORKEVENTS /* lpNetworkEvents */) +WSAEnumNetworkEvents (SOCKET s, + WSAEVENT hEventObject, + LPWSANETWORKEVENTS lpNetworkEvents) { + ACE_UNUSED_ARG (s); + ACE_UNUSED_ARG (hEventObject); + ACE_UNUSED_ARG (lpNetworkEvents); + return -1; } #endif /* !defined ACE_HAS_WINSOCK2 */ -ACE_END_VERSIONED_NAMESPACE_DECL - #endif /* ACE_WIN32 */ |