From 870f29b5c3688e5b6f8f98ac7b72ad16d4fbe603 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 6 Dec 2013 15:38:21 +0000 Subject: * syscalls.cc (dup): Use cygheap_fdnew properly. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/syscalls.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'winsup') 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 + + * syscalls.cc (dup): Use cygheap_fdnew properly. + 2013-12-05 Christopher Faylor * 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 -- cgit v1.2.3