Replace sys_errlist with strerror().
authorAndrew Cagney <cagney@redhat.com>
Wed, 18 Nov 1998 04:19:31 +0000 (04:19 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 18 Nov 1998 04:19:31 +0000 (04:19 +0000)
gdb/29k-share/udi/udip2soc.c
gdb/ChangeLog

index 19540f832c53e616c68160160c1f5506b2103894..969e8502eb46fa49a1537d64a235d2be999d3594 100644 (file)
@@ -53,7 +53,6 @@ static  char udip2soc_c_AMD[]="@(#)udip2soc.c 2.8, AMD";
 
 extern int             errno;
 extern int             sys_nerr;
-/*extern       char*           sys_errlist[];*/
 extern int             udr_errno;
 extern char*           getenv();
 
@@ -265,7 +264,7 @@ UDIConnect(Config, Session)
     if (soc_con[cnt].dfe_sd == -1)
       {
        sprintf(dfe_errmsg, "DFE-ipc ERROR, socket() call failed %s ",
-               sys_errlist[errno]);
+               strerror (errno));
        dfe_errno = UDIErrorUnknownError;
        goto tip_failure;
       }
@@ -350,7 +349,7 @@ UDIConnect(Config, Session)
            if (pos == 0)
              {
                sprintf(dfe_errmsg, "DFE-ipc ERROR, connect() call failed: %s",
-                       sys_errlist[errno]);
+                       strerror (errno));
                dfe_errno = UDIErrorCantConnect;
                goto tip_failure;
              }
@@ -387,7 +386,7 @@ UDIConnect(Config, Session)
                    sizeof(soc_con[cnt].tip_sockaddr_in)))
          {
            sprintf(dfe_errmsg, "DFE-ipc ERROR, connect() call failed %s ",
-                   sys_errlist[errno]);
+                   strerror (errno));
            dfe_errno = UDIErrorCantConnect;
            goto tip_failure;
          }
index 0de89764c6699b2d0710d26c81a1563fa124d47f..329765330f4e17797186affc1c69469479fda13d 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 18 15:03:17 1998  Andrew Cagney  <cagney@chook.cygnus.com>
+
+       * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with
+       strerror.
+
 Mon Nov 16 14:17:05 1998  Geoffrey Noer  <noer@cygnus.com>
 
        * defs.h: if compiling under Cygwin, define __CYGWIN__ if