diff options
author | DJ Delorie <dj@redhat.com> | 2000-05-11 22:30:45 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-05-11 22:30:45 +0000 |
commit | cfe11d7465d410cd281f0cdf3296545c0243be2b (patch) | |
tree | a68e71ecdddfa1fdf13c5fd2b5cc705af4ed0bd0 /winsup/cygwin/mmap.cc | |
parent | eeefccfcd1119d89fb81f86a93fd49bd9b5ff16b (diff) | |
download | cygnal-cfe11d7465d410cd281f0cdf3296545c0243be2b.tar.gz cygnal-cfe11d7465d410cd281f0cdf3296545c0243be2b.tar.bz2 cygnal-cfe11d7465d410cd281f0cdf3296545c0243be2b.zip |
* mmap.cc (list::erase): Increment loop counter.
(map::erase): Likewise.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 4 |
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--; } |