diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-04-23 09:44:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-04-23 09:44:36 +0000 |
commit | 61522196c71593da09572fce9af9e0d7dad61bc3 (patch) | |
tree | 9bf74facd67974fa2f780d6ce68b14eb7a94e371 /winsup/cygwin/errno.cc | |
parent | 1875ee55d31d3673059373c8f9837bf98f93c713 (diff) | |
download | cygnal-61522196c71593da09572fce9af9e0d7dad61bc3.tar.gz cygnal-61522196c71593da09572fce9af9e0d7dad61bc3.tar.bz2 cygnal-61522196c71593da09572fce9af9e0d7dad61bc3.zip |
* Merge in cygwin-64bit-branch.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r-- | winsup/cygwin/errno.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index b2cbd983b..2a5f711bd 100644 --- a/winsup/cygwin/errno.cc +++ b/winsup/cygwin/errno.cc @@ -34,7 +34,7 @@ details. */ #define X(w, e) {ERROR_##w, #w, e} -static NO_COPY struct +static const struct { DWORD w; /* windows version of error */ const char *s; /* text of windows version */ @@ -162,7 +162,7 @@ static NO_COPY struct }; extern "C" { -const char *_sys_errlist[] NO_COPY_INIT = +const char *_sys_errlist[] = { /* NOERROR 0 */ "No error", /* EPERM 1 */ "Operation not permitted", @@ -333,7 +333,7 @@ geterrno_from_win_error (DWORD code, int deferrno) void __reg3 seterrno_from_win_error (const char *file, int line, DWORD code) { - syscall_printf ("%s:%d windows error %d", file, line, code); + syscall_printf ("%s:%d windows error %u", file, line, code); errno = _impure_ptr->_errno = geterrno_from_win_error (code, EACCES); } @@ -350,7 +350,7 @@ seterrno_from_nt_status (const char *file, int line, NTSTATUS status) { DWORD code = RtlNtStatusToDosError (status); SetLastError (code); - syscall_printf ("%s:%d status %p -> windows error %d", + syscall_printf ("%s:%d status %y -> windows error %u", file, line, status, code); errno = _impure_ptr->_errno = geterrno_from_win_error (code, EACCES); } |