From: Andrew Cagney Date: Wed, 18 Nov 1998 04:19:31 +0000 (+0000) Subject: Replace sys_errlist with strerror(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=206e3a8a5c7bf940cacc468a9b6d2269ea8e6aae;p=binutils-gdb.git Replace sys_errlist with strerror(). --- diff --git a/gdb/29k-share/udi/udip2soc.c b/gdb/29k-share/udi/udip2soc.c index 19540f832c5..969e8502eb4 100644 --- a/gdb/29k-share/udi/udip2soc.c +++ b/gdb/29k-share/udi/udip2soc.c @@ -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; } diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0de89764c66..329765330f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 18 15:03:17 1998 Andrew Cagney + + * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with + strerror. + Mon Nov 16 14:17:05 1998 Geoffrey Noer * defs.h: if compiling under Cygwin, define __CYGWIN__ if