summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 07:17:09 +0000
committersergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 07:17:09 +0000
commite80420822d464d3bee20fcf1d9935bee3951f471 (patch)
tree8bb0cee10078565b8358c9f87f2cd8fbd8cdb489
parent6fd3f8daf3a30b3f2a11bd8962606b42ebffa828 (diff)
downloadATCD-e80420822d464d3bee20fcf1d9935bee3951f471.tar.gz
*** empty log message ***
-rw-r--r--TAO/tests/Cubit/COOL/MT_Cubit/Makefile2
-rw-r--r--TAO/tests/Cubit/COOL/MT_Cubit/client.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/TAO/tests/Cubit/COOL/MT_Cubit/Makefile b/TAO/tests/Cubit/COOL/MT_Cubit/Makefile
index dc43d2bf75d..3a15988976a 100644
--- a/TAO/tests/Cubit/COOL/MT_Cubit/Makefile
+++ b/TAO/tests/Cubit/COOL/MT_Cubit/Makefile
@@ -55,7 +55,7 @@ ifdef CHORUS
CLT_OBJS += pccTimer.o
LDLIBS += -lOrb
else
- LDLIBS += -lOrb-mt
+ LDLIBS += -lsocket -lACE -lOrb-mt
endif
VLDLIBS = $(LDLIBS:%=%$(VAR))
diff --git a/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp b/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp
index f0b6adb3c27..5366857dd7f 100644
--- a/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp
+++ b/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp
@@ -39,6 +39,8 @@ initialize (void)
int
do_priority_inversion_test (Task_State &ts)
{
+ u_int i = 0;
+
// Create the clients
Client high_priority_client (&ts);
Client low_priority_client (&ts);
@@ -72,7 +74,7 @@ do_priority_inversion_test (Task_State &ts)
// Drop the priority, so that the priority of clients will increase
// with increasing client number.
- for (int i = 0; i < ts.thread_count_; i++)
+ for (i = 0; i < ts.thread_count_; i++)
priority = ACE_Sched_Params::previous_priority (ACE_SCHED_FIFO,
priority,
ACE_SCOPE_THREAD);
@@ -82,7 +84,7 @@ do_priority_inversion_test (Task_State &ts)
ts.thread_count_ - 1,
priority));
- for (u_int i = 0; i < ts.thread_count_ - 1; i++)
+ for (i = 0; i < ts.thread_count_ - 1; i++)
{
// The first thread starts at min + 1, since the minimum
// priority thread is the utilization thread.