This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] cygwin: Use errno instead of _impure_ptr->_errno
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 19 Jul 2017 08:36:19 -0000
- Subject: [newlib-cygwin] cygwin: Use errno instead of _impure_ptr->_errno
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9cc89b04383cf097fcd795b1a13670dff0d2854b
commit 9cc89b04383cf097fcd795b1a13670dff0d2854b
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Wed Jul 19 10:30:47 2017 +0200
cygwin: Use errno instead of _impure_ptr->_errno
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/environ.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 647db5f..10ffd68 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -454,8 +454,7 @@ posify_maybe (char **here, const char *value, char *outenv)
memcpy (outenv, src, len);
char *newvalue = outenv + len;
- if (!conv->toposix (value, newvalue, NT_MAX_PATH - len)
- || _impure_ptr->_errno != EIDRM)
+ if (!conv->toposix (value, newvalue, NT_MAX_PATH - len) || errno != EIDRM)
conv->add_cache (newvalue, *value != '/' ? value : NULL);
else
{