Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-05-12 02:30:45 +0400
committerDJ Delorie <dj@redhat.com>2000-05-12 02:30:45 +0400
commitcfe11d7465d410cd281f0cdf3296545c0243be2b (patch)
treea68e71ecdddfa1fdf13c5fd2b5cc705af4ed0bd0 /winsup/cygwin/mmap.cc
parenteeefccfcd1119d89fb81f86a93fd49bd9b5ff16b (diff)
* mmap.cc (list::erase): Increment loop counter.
(map::erase): Likewise.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index c0cffc285..b63787ed4 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -83,7 +83,7 @@ list::add_record (mmap_record r)
void
list::erase (int i)
{
- while (i < nrecs-1)
+ for (; i < nrecs-1; i++)
recs[i] = recs[i+1];
nrecs--;
}
@@ -137,7 +137,7 @@ map::add_list (list *l, int fd)
void
map::erase (int i)
{
- while (i < nlists-1)
+ for (; i < nlists-1; i++)
lists[i] = lists[i+1];
nlists--;
}