summaryrefslogtreecommitdiff
path: root/ace/Read_Buffer.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-06 04:42:47 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-06 04:42:47 +0000
commitde79385e4d4b096cea5ea90545439fb645198222 (patch)
treece0e294b53af470cdfc0b5b690436b6628f860ce /ace/Read_Buffer.cpp
parent5cfdefa63c39862b8af5f4e9546dbb029d554d89 (diff)
downloadATCD-de79385e4d4b096cea5ea90545439fb645198222.tar.gz
.
Diffstat (limited to 'ace/Read_Buffer.cpp')
-rw-r--r--ace/Read_Buffer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Read_Buffer.cpp b/ace/Read_Buffer.cpp
index 17c546ccdf5..b203f3b8d0e 100644
--- a/ace/Read_Buffer.cpp
+++ b/ace/Read_Buffer.cpp
@@ -89,18 +89,18 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
char buf[BUFSIZ];
int c = EOF;
- size_t index = 0;
+ size_t slot = 0;
int done = 0;
// Read in the file char by char
- while (index < BUFSIZ)
+ while (slot < BUFSIZ)
{
c = getc (this->stream_);
// Don't insert EOF into the buffer...
if (c == EOF)
{
- if (index == 0)
+ if (slot == 0)
return 0;
else
{
@@ -120,7 +120,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
c = replace;
}
- buf[index++] = (char) c;
+ buf[slot++] = (char) c;
// Substitutions must be made before checking for termination.
if (done)
@@ -128,7 +128,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
}
// Increment the number of bytes.
- this->size_ += index;
+ this->size_ += slot;
char *result;
@@ -156,7 +156,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
// Copy buf into the appropriate location starting from end of
// buffer. Peter says this is confusing and that we should use
// memcpy() ;-)
- for (size_t j = index; j > 0; j--)
+ for (size_t j = slot; j > 0; j--)
*--result = buf[j - 1];
return result;