diff options
| author | Roland McGrath | 1994-01-08 22:55:04 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-01-08 22:55:04 +0000 |
| commit | a1f17b2d6a7805b9ad9cf5f06f4e1f792b8b8c47 (patch) | |
| tree | 3784fe8c112375e91de28dd17dcdab149adab863 /src | |
| parent | 03c71d897f3718b1b1724a0f10dedd5276c4afc8 (diff) | |
| download | emacs-a1f17b2d6a7805b9ad9cf5f06f4e1f792b8b8c47.tar.gz emacs-a1f17b2d6a7805b9ad9cf5f06f4e1f792b8b8c47.zip | |
(report_file_error): Use strerror instead of sys_errlist.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c index f46ffef0ad9..c462c27b97d 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -137,10 +137,7 @@ report_file_error (string, data) | |||
| 137 | { | 137 | { |
| 138 | Lisp_Object errstring; | 138 | Lisp_Object errstring; |
| 139 | 139 | ||
| 140 | if (errno >= 0 && errno < sys_nerr) | 140 | errstring = build_string (strerror (errno)); |
| 141 | errstring = build_string (sys_errlist[errno]); | ||
| 142 | else | ||
| 143 | errstring = build_string ("undocumented error code"); | ||
| 144 | 141 | ||
| 145 | /* System error messages are capitalized. Downcase the initial | 142 | /* System error messages are capitalized. Downcase the initial |
| 146 | unless it is followed by a slash. */ | 143 | unless it is followed by a slash. */ |