Replace sys_errlist with strerror().

This commit is contained in:
Andrew Cagney 1998-11-18 04:19:31 +00:00
parent 119d6454bb
commit 206e3a8a5c
2 changed files with 8 additions and 4 deletions

View 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;
}

View 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