summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/GIOP_Utils.cpp')
-rw-r--r--TAO/tao/GIOP_Utils.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/TAO/tao/GIOP_Utils.cpp b/TAO/tao/GIOP_Utils.cpp
index 595a6f85936..464eaa8430e 100644
--- a/TAO/tao/GIOP_Utils.cpp
+++ b/TAO/tao/GIOP_Utils.cpp
@@ -9,13 +9,12 @@ ACE_RCSID (tao,
GIOP_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
-TAO_GIOP_Utils::read_bytes_input (TAO_Transport *transport,
- TAO_InputCDR &input,
- CORBA::ULong read_size,
- ACE_Time_Value *value)
+TAO_GIOP_Utils::
+ read_bytes_input (TAO_Transport *transport,
+ TAO_InputCDR &input,
+ CORBA::ULong read_size,
+ ACE_Time_Value *value)
{
// Grow the size of CDR stream
if (input.grow (read_size) == -1)
@@ -29,7 +28,7 @@ TAO_GIOP_Utils::read_bytes_input (TAO_Transport *transport,
char *buf = input.rd_ptr ();
ssize_t n = 0;
- for (CORBA::ULong t = read_size;
+ for (int t = read_size;
t != 0;
t -= n)
{
@@ -77,5 +76,3 @@ TAO_GIOP_Utils::read_buffer (TAO_Transport *transport,
return bytes_read;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL