summaryrefslogtreecommitdiff
path: root/tests/Buffer_Stream_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Buffer_Stream_Test.cpp')
-rw-r--r--tests/Buffer_Stream_Test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Buffer_Stream_Test.cpp b/tests/Buffer_Stream_Test.cpp
index 2ba15d15cc3..4444b1ed070 100644
--- a/tests/Buffer_Stream_Test.cpp
+++ b/tests/Buffer_Stream_Test.cpp
@@ -112,11 +112,11 @@ Producer::svc (void)
ACE_NEW_THREAD;
// Keep reading stdin, until we reach EOF.
- for (char c = 'a'; c <= 'z'; c++)
+ for (char *c = ACE_ALPHABET; *c != '\0'; c++)
{
// Allocate a new message.
char d[2];
- d[0] = c;
+ d[0] = *c;
d[1] = '\0';
ACE_Message_Block *mb;
@@ -152,7 +152,7 @@ Consumer::svc (void)
ACE_Message_Block *mb = 0;
int result = 0;
- char c = 'a';
+ char *c = ACE_ALPHABET;
char *output;
// Keep looping, reading a message out of the queue, until we
@@ -171,7 +171,7 @@ Consumer::svc (void)
if (length > 0)
{
output = mb->rd_ptr ();
- ACE_ASSERT (c == output[0]);
+ ACE_ASSERT (*c == output[0]);
c++;
}
mb->release ();