summaryrefslogtreecommitdiff
path: root/ace/Service_Config.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-25 05:17:12 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-25 05:17:12 +0000
commitb80daf08b3def65e8ff83fa0b5e9f6e669ee66a5 (patch)
tree6551ac0ad858506aaf7db261fed291c176b634d0 /ace/Service_Config.cpp
parentef5ea9c245a18cac4768a47f6d3d74fcfb07c3fa (diff)
downloadATCD-b80daf08b3def65e8ff83fa0b5e9f6e669ee66a5.tar.gz
Should use ASYS_WIDE_STRING to convert char string to wchar string. ASYS_TEXT only works for literals.
Diffstat (limited to 'ace/Service_Config.cpp')
-rw-r--r--ace/Service_Config.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ace/Service_Config.cpp b/ace/Service_Config.cpp
index b2dac3d7aaf..d89ee81a8df 100644
--- a/ace/Service_Config.cpp
+++ b/ace/Service_Config.cpp
@@ -291,7 +291,7 @@ ACE_Service_Config::initialize (const ASYS_TCHAR svc_name[],
ASYS_TEXT ("opening static service %s\n"),
svc_name));
- if (ACE_Service_Repository::instance ()->find
+ if (ACE_Service_Repository::instance ()->find
(svc_name,
(const ACE_Service_Type **) &srp) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -322,7 +322,7 @@ ACE_Service_Config::initialize (const ACE_Service_Type *sr,
ACE_ARGV args (parameters);
if (ACE::debug ())
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ASYS_TEXT ("opening dynamic service %s\n"),
sr->name ()));
@@ -424,7 +424,7 @@ ACE_Service_Config::process_directives (void)
ASYS_TEXT ("%p\n"),
// @@ Beware of the WString here... Not
// sure how to fix this with %p...
- ASYS_TEXT (sptr->fast_rep ())));
+ ASYS_WIDE_STRING (sptr->fast_rep ())));
errno = ENOENT;
result = -1;
break;
@@ -459,7 +459,7 @@ ACE_Service_Config::process_commandline_directives (void)
iter.advance ())
{
// Process just a single directive.
- if (ACE_Service_Config::process_directive
+ if (ACE_Service_Config::process_directive
(ASYS_WIDE_STRING (sptr->fast_rep ())) == -1)
{
ACE_ERROR ((LM_ERROR,
@@ -594,14 +594,14 @@ ACE_Service_Config::open (const ASYS_TCHAR program_name[],
#if !defined (ACE_LACKS_UNIX_SIGNALS)
// This really ought to be a Singleton I suspect...
- if (ACE_Reactor::instance ()->register_handler
+ if (ACE_Reactor::instance ()->register_handler
(ACE_Service_Config::signum_,
ACE_Service_Config::signal_handler_) == -1)
ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("can't register signal handler\n")));
#endif /* ACE_LACKS_UNIX_SIGNALS */
}
-
+
if (ACE::debug ())
ACE_Log_Msg::enable_debug_messages ();
@@ -617,7 +617,7 @@ ACE_Service_Config::ACE_Service_Config (const ASYS_TCHAR program_name[],
&& errno != ENOENT)
// Only print out an error if it wasn't the svc.conf file that was
// missing.
- ACE_ERROR ((LM_ERROR,
+ ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("%p\n"),
program_name));
}
@@ -626,7 +626,7 @@ ACE_Service_Config::ACE_Service_Config (const ASYS_TCHAR program_name[],
void
ACE_Service_Config::handle_signal (int sig,
- siginfo_t *,
+ siginfo_t *,
ucontext_t *)
{
ACE_TRACE ("ACE_Service_Config::handle_signal");
@@ -634,11 +634,11 @@ ACE_Service_Config::handle_signal (int sig,
if (ACE_Service_Config::signum_ != sig)
ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("error, signal %S does match %S\n"),
- sig,
+ sig,
ACE_Service_Config::signum_));
if (ACE::debug ())
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("signal %S occurred\n"),
+ ACE_DEBUG ((LM_DEBUG,
+ ASYS_TEXT ("signal %S occurred\n"),
sig));
ACE_Service_Config::reconfig_occurred_ = 1;
}
@@ -656,8 +656,8 @@ ACE_Service_Config::reconfigure (void)
{
time_t t = ACE_OS::time (0);
if (ACE::debug ())
- ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("beginning reconfiguration at %s"),
+ ACE_DEBUG ((LM_DEBUG,
+ ASYS_TEXT ("beginning reconfiguration at %s"),
ACE_OS::ctime (&t)));
}
if (ACE_Service_Config::process_directives () == -1)
@@ -751,7 +751,7 @@ ACE_Service_Config::fini_svcs (void)
if (ACE::debug ())
ACE_Log_Msg::enable_debug_messages ();
-
+
return result;
}