diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-08-15 17:50:53 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-08-15 17:50:53 +0400 |
commit | fc15ff2f0dbcf759e2a5e9cdf648ba0241535e12 (patch) | |
tree | 24771bd0b13391981736e0ba6e88a69810df17f8 /winsup/cygwin/errno.cc | |
parent | 1b580c732ad14228f5b28897523e61d9d49537fd (diff) |
* cygerrno.h (seterrno): Define as (always) inline function.
* errno.cc (seterrno): Remove.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r-- | winsup/cygwin/errno.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index a87a11564..589410a9a 100644 --- a/winsup/cygwin/errno.cc +++ b/winsup/cygwin/errno.cc @@ -1,7 +1,7 @@ /* errno.cc: errno-related functions Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc. + 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc. This file is part of Cygwin. @@ -363,13 +363,6 @@ seterrno_from_nt_status (const char *file, int line, NTSTATUS status) errno = _impure_ptr->_errno = geterrno_from_win_error (code, EACCES); } -/* seterrno: Set `errno' based on GetLastError (). */ -void __reg2 -seterrno (const char *file, int line) -{ - seterrno_from_win_error (file, line, GetLastError ()); -} - static char * strerror_worker (int errnum) { |