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>2013-12-06 19:38:21 +0400
committerChristopher Faylor <me@cgf.cx>2013-12-06 19:38:21 +0400
commit870f29b5c3688e5b6f8f98ac7b72ad16d4fbe603 (patch)
treef4074a0ed5a825cd164ea145bbab5df4289defd0 /winsup
parent09244c002e00fe24571c50d249bc649694fb1837 (diff)
* syscalls.cc (dup): Use cygheap_fdnew properly.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/syscalls.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 68f05c4dd..861cfd7f8 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-06 Christopher Faylor <me.cygwin2013@cgf.cx>
+
+ * syscalls.cc (dup): Use cygheap_fdnew properly.
+
2013-12-05 Christopher Faylor <me.cygwin2013@cgf.cx>
* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index cb9709165..ba430789b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -121,7 +121,7 @@ extern "C" int
dup (int fd)
{
int res;
- int newfd = cygheap_fdnew ();
+ cygheap_fdnew newfd;
if (newfd < 0)
res = -1;
else