mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* syscalls.cc (dup): Use cygheap_fdnew properly.
This commit is contained in:
parent
09244c002e
commit
870f29b5c3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user