diff options
Diffstat (limited to 'ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp')
-rw-r--r-- | ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp b/ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp index 915f9e79cce..3de85175592 100644 --- a/ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp +++ b/ACE/examples/ASX/UPIPE_Event_Server/Event_Analyzer.cpp @@ -4,7 +4,7 @@ #include "ace/Truncate.h" #include "Event_Analyzer.h" -ACE_RCSID(UPIPE_Event_Server, Event_Analyzer, "$Id$") + #if defined (ACE_HAS_THREADS) @@ -28,7 +28,7 @@ Event_Analyzer::control (ACE_Message_Block *mb) switch (cmd = ioc->cmd ()) { - case ACE_IO_Cntl_Msg::SET_LWM: + case ACE_IO_Cntl_Msg::SET_LWM: case ACE_IO_Cntl_Msg::SET_HWM: this->water_marks (cmd, *(size_t *) mb->cont ()->rd_ptr ()); break; @@ -38,7 +38,7 @@ Event_Analyzer::control (ACE_Message_Block *mb) return 0; } -int +int Event_Analyzer::put (ACE_Message_Block *mb, ACE_Time_Value *) { if (mb->msg_type () == ACE_Message_Block::MB_IOCTL) @@ -47,29 +47,29 @@ Event_Analyzer::put (ACE_Message_Block *mb, ACE_Time_Value *) return this->put_next (mb); } -int +int Event_Analyzer::init (int, ACE_TCHAR *[]) { return 0; } -int +int Event_Analyzer::fini (void) { return 0; } -int +int Event_Analyzer::info (ACE_TCHAR **strp, size_t length) const { - const ACE_TCHAR *mod_name = this->name (); - - if (*strp == 0 && (*strp = ACE_OS::strdup (mod_name)) == 0) + const ACE_TCHAR *module_name = this->name (); + + if (*strp == 0 && (*strp = ACE_OS::strdup (module_name)) == 0) return -1; else - ACE_OS::strncpy (*strp, mod_name, length); - - return ACE_Utils::truncate_cast<int> (ACE_OS::strlen (mod_name)); + ACE_OS::strncpy (*strp, module_name, length); + + return ACE_Utils::truncate_cast<int> (ACE_OS::strlen (module_name)); } #endif /* ACE_HAS_THREADS */ |