errno: Stop using _impure_ptr->_errno completely

We use errno AKA _REENT->_errno since the last century and only set
_impure_ptr->_errno for backward compat.  Stop that.  Also, remove
the last check for _impure_ptr->_errno in Cygwin code.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2017-03-10 20:21:09 +01:00
parent f2e6553c25
commit 44b1746a41
3 changed files with 5 additions and 6 deletions

View File

@ -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
{