summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-03-25 20:28:27 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-03-25 20:28:27 +0100
commit42f7c5d534a248dbb41d07740e9d3faecd898227 (patch)
treecde251701f7309ecd5558bc398698335fdac3ece /TAO
parent516930304a9b4bc58a8636b0a97df93b5a771815 (diff)
downloadATCD-42f7c5d534a248dbb41d07740e9d3faecd898227.tar.gz
Fixed comparison warnings
* TAO/utils/nslist/nslist.cpp:
Diffstat (limited to 'TAO')
-rw-r--r--TAO/utils/nslist/nslist.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/utils/nslist/nslist.cpp b/TAO/utils/nslist/nslist.cpp
index a0c5a43a418..5bb63b0ab79 100644
--- a/TAO/utils/nslist/nslist.cpp
+++ b/TAO/utils/nslist/nslist.cpp
@@ -40,7 +40,7 @@ namespace
*myNode = "+"; // Default string to draw tree node end-points
size_t sizeMyTree; // Initialised by main to strlen (myTree)
size_t sizeMyNode; // Initialised by main to strlen (myNode)
- int maxDepth= 0; // Limit to display depth (default unlimited)
+ size_t maxDepth= 0; // Limit to display depth (default unlimited)
ACE_Time_Value
rtt = ACE_Time_Value::zero; // relative roundtrip timeout for ctx
@@ -48,7 +48,7 @@ namespace
CORBA::ULong max_count = MAX_COUNT_DEFAULT;
void list_context (const CosNaming::NamingContext_ptr,
- int level,
+ size_t level,
CORBA::ULong max_count);
CORBA::Object_ptr set_rtt(CORBA::Object_ptr obj);
@@ -68,9 +68,9 @@ namespace
delete pThisOne; // i.e. delete pBottom; Attempt to stop over-optimisation by BORLAND
}
- static int hasBeenSeen (const CosNaming::NamingContext_ptr nc)
+ static size_t hasBeenSeen (const CosNaming::NamingContext_ptr nc)
{
- int level= 1;
+ size_t level = 1;
for (const NestedNamingContexts *pMyNode= pBottom;
pMyNode;
++level, pMyNode= pMyNode->pNext)
@@ -133,7 +133,7 @@ namespace
//==========================================================================
void
- display_endpoint_info (CORBA::Object_ptr obj, const int level)
+ display_endpoint_info (CORBA::Object_ptr obj, const size_t level)
{
TAO_Stub *stub = obj->_stubobj ();
if (!stub)
@@ -186,13 +186,13 @@ namespace
void
show_chunk (const CosNaming::NamingContext_ptr nc,
const CosNaming::BindingList &bl,
- int level)
+ size_t level)
{
for (CORBA::ULong i = 0;
i < bl.length ();
++i)
{
- int count;
+ size_t count;
for (count= 0; count < level-1; ++count)
ACE_DEBUG ((LM_DEBUG, "%C ", myTree));
ACE_DEBUG ((LM_DEBUG, "%C %C", myNode,
@@ -240,12 +240,12 @@ namespace
ACE_DEBUG ((LM_DEBUG, " {Operation on conext IOR timed out}"));
}
- if (const int backwards= NestedNamingContexts::hasBeenSeen (xc.in ()))
+ if (const size_t backwards= NestedNamingContexts::hasBeenSeen (xc.in ()))
{
ACE_DEBUG ((LM_DEBUG, " (Binding Loop)\n"));
if (!noLoops)
{
- int count;
+ size_t count;
for (count= 0; count < (level - backwards); ++count)
ACE_DEBUG ((LM_DEBUG, "%C ", myTree));
ACE_DEBUG ((LM_DEBUG, "^"));
@@ -303,7 +303,7 @@ namespace
//==========================================================================
void
list_context (const CosNaming::NamingContext_ptr nc,
- int level,
+ size_t level,
CORBA::ULong max_count)
{
CosNaming::BindingIterator_var it;