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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-06-27 01:36:52 +0400
committerChristopher Faylor <me@cgf.cx>2000-06-27 01:36:52 +0400
commit9cef3cc0d7af7f305df62af6d562d402ebe5398b (patch)
tree326166bf074f1aa9fb95d968c21653850587a101 /winsup
parent5a449743bbcfaccd5e60ffd3e6f62d345802a628 (diff)
* hinfo.cc (hinfo::dup2): Eliminate compiler warning.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/dtable.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 59a963fea..dcfee80e9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jun 26 17:34:54 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * hinfo.cc (hinfo::dup2): Eliminate compiler warning.
+
Mon Jun 26 11:25:29 2000 Christopher Faylor <cgf@cygnus.com>
* hinfo.cc (hinfo::dup2): Guard against out of bounds newfd.
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 9f9d0b65b..dea636105 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -342,7 +342,7 @@ hinfo::dup2 (int oldfd, int newfd)
}
SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK,"dup");
- if (newfd >= dtable.size || newfd < 0)
+ if ((size_t) newfd >= dtable.size || newfd < 0)
{
syscall_printf ("new fd out of bounds: %d", newfd);
set_errno (EBADF);