summaryrefslogtreecommitdiff
path: root/tests/Message_Queue_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Message_Queue_Test.cpp')
-rw-r--r--tests/Message_Queue_Test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp
index af5f2faf0e6..01884fff603 100644
--- a/tests/Message_Queue_Test.cpp
+++ b/tests/Message_Queue_Test.cpp
@@ -91,7 +91,8 @@ iterator_test (void)
// default of 16 Kb (defined by ACE_Message_Queue_Base::DEFAULT_HWM),
// so that the test runs on machines with 8Kb pagesizes.
#if !defined(_UNICOS)
- QUEUE queue (32 * 1024 * sizeof (ACE_TCHAR));
+ // QUEUE queue (32 * 1024 * sizeof (ACE_TCHAR));
+ QUEUE queue (sizeof(buffer));
#else
// this works on the Cray, where BUFSIZ is defined as 32Kb
QUEUE queue (ITERATIONS * BUFSIZ - 1);
@@ -300,8 +301,7 @@ static void *
receiver (void *arg)
{
Queue_Wrapper *queue_wrapper =
- ACE_reinterpret_cast (Queue_Wrapper *,
- arg);
+ reinterpret_cast<Queue_Wrapper *> (arg);
int i;
ACE_Message_Block **receive_block_p = 0;
@@ -348,7 +348,7 @@ static void *
sender (void *arg)
{
Queue_Wrapper *queue_wrapper =
- ACE_reinterpret_cast (Queue_Wrapper *, arg);
+ reinterpret_cast<Queue_Wrapper *> (arg);
int i;
timer->start ();