diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 7 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 7 | ||||
-rw-r--r-- | ace/Log_Msg_UNIX_Syslog.cpp | 10 |
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); |