summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-07-16 20:06:31 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-07-16 20:06:31 +0000
commit00f6035fb31a24a61706a76b85ce375ad1c7d296 (patch)
treeb90ee90c75590405ca58abe74eb07cf05962619d
parent498526caf70ac06806d339aafee652cfb2fe5fdc (diff)
downloadATCD-00f6035fb31a24a61706a76b85ce375ad1c7d296.tar.gz
ChangeLogTag:Mon Jul 16 14:59:32 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLogs/ChangeLog-02a7
-rw-r--r--ChangeLogs/ChangeLog-03a7
-rw-r--r--ace/Log_Msg_UNIX_Syslog.cpp10
4 files changed, 26 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 703ff64adb1..40a39d86208 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jul 16 14:59:32 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
+
+ * ace/Log_Msg_UNIX_Syslog.cpp (open): Add an ACE_const_cast()
+ to the program name for platforms like LynxOS whose openlog()
+ method is char * rather than const char *. Thanks to Bala for
+ reporting this.
+
Sun Jul 15 11:06:33 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* ace/Log_Msg_NT_Event_Log.cpp: Fixed the implementation so that
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 703ff64adb1..40a39d86208 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,10 @@
+Mon Jul 16 14:59:32 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
+
+ * ace/Log_Msg_UNIX_Syslog.cpp (open): Add an ACE_const_cast()
+ to the program name for platforms like LynxOS whose openlog()
+ method is char * rather than const char *. Thanks to Bala for
+ reporting this.
+
Sun Jul 15 11:06:33 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* ace/Log_Msg_NT_Event_Log.cpp: Fixed the implementation so that
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 703ff64adb1..40a39d86208 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,10 @@
+Mon Jul 16 14:59:32 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
+
+ * ace/Log_Msg_UNIX_Syslog.cpp (open): Add an ACE_const_cast()
+ to the program name for platforms like LynxOS whose openlog()
+ method is char * rather than const char *. Thanks to Bala for
+ reporting this.
+
Sun Jul 15 11:06:33 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
* ace/Log_Msg_NT_Event_Log.cpp: Fixed the implementation so that
diff --git a/ace/Log_Msg_UNIX_Syslog.cpp b/ace/Log_Msg_UNIX_Syslog.cpp
index b82cdc14481..d44de31bfd6 100644
--- a/ace/Log_Msg_UNIX_Syslog.cpp
+++ b/ace/Log_Msg_UNIX_Syslog.cpp
@@ -34,11 +34,11 @@ ACE_Log_Msg_UNIX_Syslog::open (const ACE_TCHAR * logger_key)
{
ACE_UNUSED_ARG (logger_key);
- // Initialize the UNIX syslog facility. Default the syslog log options
- // LOG_CONS and LOG_PID to be set. There really should be a logging
- // strategy option to control the syslog log options, however, we'll
- // take the easy way out for now.
- openlog (ACE_Log_Msg::program_name (),
+ // Initialize the UNIX syslog facility. Default the syslog log
+ // options LOG_CONS and LOG_PID to be set. There really should be a
+ // logging strategy option to control the syslog log options,
+ // however, we'll take the easy way out for now.
+ openlog (ACE_const_cast (char *, ACE_Log_Msg::program_name ()),
LOG_CONS|LOG_PID,
ACE_DEFAULT_SYSLOG_FACILITY);