summaryrefslogtreecommitdiff
path: root/examples/C++NPv2/Client_Logging_Daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv2/Client_Logging_Daemon.cpp')
-rw-r--r--examples/C++NPv2/Client_Logging_Daemon.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/C++NPv2/Client_Logging_Daemon.cpp b/examples/C++NPv2/Client_Logging_Daemon.cpp
index 696c0b1bc6c..777e56f757a 100644
--- a/examples/C++NPv2/Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/Client_Logging_Daemon.cpp
@@ -4,7 +4,6 @@
** Copyright 2002 Addison Wesley. All Rights Reserved.
*/
-#include "ace/OS.h"
#include "ace/Event_Handler.h"
#include "ace/INET_Addr.h"
#include "ace/Get_Opt.h"
@@ -14,7 +13,6 @@
#include "ace/Reactor.h"
#include "ace/Service_Object.h"
#include "ace/Signal.h"
-#include "ace/Synch.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/SOCK_Connector.h"
#include "ace/SOCK_Stream.h"
@@ -332,7 +330,7 @@ int Client_Logging_Daemon::init (int argc, ACE_TCHAR *argv[]) {
u_short cld_port = ACE_DEFAULT_SERVICE_PORT;
u_short sld_port = ACE_DEFAULT_LOGGING_SERVER_PORT;
ACE_TCHAR sld_host[MAXHOSTNAMELEN];
- ACE_OS_String::strcpy (sld_host, ACE_LOCALHOST);
+ ACE_OS::strcpy (sld_host, ACE_LOCALHOST);
ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
get_opt.long_option (ACE_TEXT ("client_port"), 'p',
@@ -353,7 +351,7 @@ int Client_Logging_Daemon::init (int argc, ACE_TCHAR *argv[]) {
(u_short, ACE_OS::atoi (get_opt.opt_arg ()));
break;
case 's': // Server logging daemon hostname.
- ACE_OS_String::strsncpy
+ ACE_OS::strsncpy
(sld_host, get_opt.opt_arg (), MAXHOSTNAMELEN);
break;
}