Replace syserr_list with more portable strerror().
authorAndrew Cagney <cagney@redhat.com>
Tue, 27 Oct 1998 03:42:14 +0000 (03:42 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 27 Oct 1998 03:42:14 +0000 (03:42 +0000)
gdb/29k-share/udi/udip2soc.c
gdb/ChangeLog

index aa25e00731d0cb29faf8d9192d74f4c00a711fae..19540f832c53e616c68160160c1f5506b2103894 100644 (file)
@@ -53,7 +53,7 @@ static  char udip2soc_c_AMD[]="@(#)udip2soc.c 2.8, AMD";
 
 extern int             errno;
 extern int             sys_nerr;
-extern char*           sys_errlist[];
+/*extern       char*           sys_errlist[];*/
 extern int             udr_errno;
 extern char*           getenv();
 
@@ -193,7 +193,7 @@ UDIConnect(Config, Session)
        if (!fd)
          {
            sprintf(dfe_errmsg, "UDIConnect, can't open udi_soc file:\n%s ",
-                   sys_errlist[errno]);
+                   strerror(errno));
            dfe_errno = UDIErrorCantOpenConfigFile;
            goto tip_failure;
          }
index 455a9514e025ddc70770c2c2f4549b1d4d835580..9f3077928b1f3bb27b60f2cbecc12970a077dd7b 100644 (file)
@@ -1,3 +1,7 @@
+Wed Oct 21 08:44:30 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror().
+
 Thu Oct 22 09:56:55 1998  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.