Mercurial > emacs
diff src/fileio.c @ 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 | 8b2b6a296cda |
| children | 22a65d8c0b9a |
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. */
