diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-12-21 16:18:55 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-12-21 16:18:55 +0000 |
commit | 3e55bf9cc906a975656603f6b4cbc62e500d6855 (patch) | |
tree | 7d809a3597cbbb94f4cad2a0c6adae2d11de85b6 /tests/Buffer_Stream_Test.cpp | |
parent | 665b6adc85110b73520a5d570b69c02d49fa594c (diff) | |
download | ATCD-3e55bf9cc906a975656603f6b4cbc62e500d6855.tar.gz |
ChangeLogTag: Wed Dec 21 16:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'tests/Buffer_Stream_Test.cpp')
-rw-r--r-- | tests/Buffer_Stream_Test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Buffer_Stream_Test.cpp b/tests/Buffer_Stream_Test.cpp index 282b0f928fc..87577a33fde 100644 --- a/tests/Buffer_Stream_Test.cpp +++ b/tests/Buffer_Stream_Test.cpp @@ -113,7 +113,7 @@ Common_Task::close (u_long exit_status) int Supplier::svc (void) { - ACE_Message_Block *mb; + ACE_Message_Block *mb = 0; // Send one message for each letter of the alphabet, then send an empty // message to mark the end. @@ -161,7 +161,7 @@ Consumer::svc (void) ACE_Message_Block *mb = 0; int result; const char *c = ACE_ALPHABET; - char *output; + char *output = 0; // Keep looping, reading a message out of the queue, until we // timeout or get a message with a length == 0, which signals us to @@ -169,7 +169,7 @@ Consumer::svc (void) for (;;) { - this->timeout_.sec (ACE_OS::time (0) + 4); // Wait for upto 4 seconds + this->timeout_.set (ACE_OS::time (0) + 4); // Wait for upto 4 seconds result = this->getq (mb, &this->timeout_); @@ -208,8 +208,8 @@ run_main (int, ACE_TCHAR *[]) #if defined (ACE_HAS_THREADS) // Control hierachically-related active objects. MT_Stream stream; - MT_Module *cm; - MT_Module *sm; + MT_Module *cm = 0; + MT_Module *sm = 0; // Allocate the Consumer and Supplier modules. ACE_NEW_RETURN (cm, MT_Module (ACE_TEXT ("Consumer"), new Consumer), -1); |