Mercurial > emacs
changeset 5529:708b422cf8df
(report_file_error): Use strerror instead of sys_errlist.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sat, 08 Jan 1994 22:55:04 +0000 |
parents | e9e928d02747 |
children | 7ff479a8e8bf |
files | src/fileio.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Sat Jan 08 22:28:39 1994 +0000 +++ b/src/fileio.c Sat Jan 08 22:55:04 1994 +0000 @@ -137,10 +137,7 @@ { Lisp_Object errstring; - if (errno >= 0 && errno < sys_nerr) - errstring = build_string (sys_errlist[errno]); - else - errstring = build_string ("undocumented error code"); + errstring = build_string (strerror (errno)); /* System error messages are capitalized. Downcase the initial unless it is followed by a slash. */