]> code.delx.au - gnu-emacs/commitdiff
(report_file_error): Use strerror instead of sys_errlist.
authorRoland McGrath <roland@gnu.org>
Sat, 8 Jan 1994 22:55:04 +0000 (22:55 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 8 Jan 1994 22:55:04 +0000 (22:55 +0000)
src/fileio.c

index f46ffef0ad95ca5f653bee94d450d5ec3dca4924..c462c27b97d0a1c7e8f8546a485a4fe9bc176aed 100644 (file)
@@ -137,10 +137,7 @@ report_file_error (string, data)
 {
   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.  */