diff options
Diffstat (limited to 'examples/C++NPv2/Client_Logging_Daemon.cpp')
-rw-r--r-- | examples/C++NPv2/Client_Logging_Daemon.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/C++NPv2/Client_Logging_Daemon.cpp b/examples/C++NPv2/Client_Logging_Daemon.cpp index cfe4aefa14e..313ed08dc01 100644 --- a/examples/C++NPv2/Client_Logging_Daemon.cpp +++ b/examples/C++NPv2/Client_Logging_Daemon.cpp @@ -145,7 +145,7 @@ int CLD_Handler::open (CLD_Connector *connector) { ACE_THR_FUNC_RETURN CLD_Handler::run_svc (void *arg) { - CLD_Handler *handler = ACE_static_cast (CLD_Handler *, arg); + CLD_Handler *handler = static_cast<CLD_Handler *> (arg); return handler->forward (); } @@ -347,12 +347,10 @@ int Client_Logging_Daemon::init (int argc, ACE_TCHAR *argv[]) { for (int c; (c = get_opt ()) != -1;) switch (c) { case 'p': // Client logging daemon acceptor port number. - cld_port = ACE_static_cast - (u_short, ACE_OS::atoi (get_opt.opt_arg ())); + cld_port = static_cast<u_short> (ACE_OS::atoi (get_opt.opt_arg ())); break; case 'r': // Server logging daemon acceptor port number. - sld_port = ACE_static_cast - (u_short, ACE_OS::atoi (get_opt.opt_arg ())); + sld_port = static_cast<u_short> (ACE_OS::atoi (get_opt.opt_arg ())); break; case 's': // Server logging daemon hostname. ACE_OS::strsncpy |