summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-07 22:25:27 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-07 22:25:27 +0000
commitc7e9ccaea264c348b1183f0b9a87bf6eb870efb9 (patch)
treea4df720d685e92182d9b24b5ff6e13de9bb86e63 /ace/Log_Msg.cpp
parent5db91bbdd57395c738288ae6dd1ffb7cdd8364d4 (diff)
downloadATCD-c7e9ccaea264c348b1183f0b9a87bf6eb870efb9.tar.gz
(log): initialize local "c" to '\0' so that egcs 1.1b won't
complain that it might be used without initialization.
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 49bcab05d94..d5cf9d21d36 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -255,7 +255,7 @@ ACE_Log_Msg::disable_debug_messages()
{
default_priority_mask_ &= ~LM_DEBUG;
ACE_Log_Msg *currentInstance = ACE_Log_Msg::instance();
- currentInstance->priority_mask(currentInstance->priority_mask()
+ currentInstance->priority_mask(currentInstance->priority_mask()
& ~LM_DEBUG);
}
@@ -266,7 +266,7 @@ ACE_Log_Msg::enable_debug_messages()
{
default_priority_mask_ |= LM_DEBUG;
ACE_Log_Msg *currentInstance = ACE_Log_Msg::instance();
- currentInstance->priority_mask(currentInstance->priority_mask()
+ currentInstance->priority_mask(currentInstance->priority_mask()
| LM_DEBUG);
}
@@ -666,7 +666,7 @@ ACE_Log_Msg::log (const ASYS_TCHAR *format_str,
}
else
{
- ASYS_TCHAR c; // high use character
+ ASYS_TCHAR c = '\0'; // high use character
ASYS_TCHAR *fp; // local format pointer
int wpc; // width/precision cnt
const int CONTINUE = 0;
@@ -881,18 +881,18 @@ ACE_Log_Msg::log (const ASYS_TCHAR *format_str,
// -Steve Huston, 19-Aug-97
ACE_OS::sprintf (bp, ASYS_TEXT ("%u"), thread_self());
#elif defined (DIGITAL_UNIX)
- ACE_OS::sprintf (bp, ASYS_TEXT ("%u"),
- pthread_getselfseq_np());
+ ACE_OS::sprintf (bp, ASYS_TEXT ("%u"),
+ pthread_getselfseq_np());
#else
ACE_hthread_t t_id;
ACE_Thread::self (t_id);
# if defined (ACE_HAS_PTHREADS_DRAFT4) && defined (HPUX_10)
- // HP-UX 10.x DCE's thread ID is a pointer. Grab the
- // more meaningful, readable, thread ID. This will match
- // the one seen in the debugger as well.
- ACE_OS::sprintf (bp, ASYS_TEXT ("%u"),
- pthread_getunique_np(&t_id));
+ // HP-UX 10.x DCE's thread ID is a pointer. Grab the
+ // more meaningful, readable, thread ID. This will match
+ // the one seen in the debugger as well.
+ ACE_OS::sprintf (bp, ASYS_TEXT ("%u"),
+ pthread_getunique_np(&t_id));
# else
ACE_OS::sprintf (bp, ASYS_TEXT ("%u"), t_id);
# endif /* ACE_HAS_PTHREADS_DRAFT4 && HPUX_10 */