diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-18 04:19:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-18 04:19:31 +0000 |
commit | 206e3a8a5c7bf940cacc468a9b6d2269ea8e6aae (patch) | |
tree | 68afdbacc5382c2c82a5f98c0b6d16109951ae33 | |
parent | 119d6454bb9d085476bc0580a32d5657c6339c76 (diff) | |
download | gdb-206e3a8a5c7bf940cacc468a9b6d2269ea8e6aae.zip gdb-206e3a8a5c7bf940cacc468a9b6d2269ea8e6aae.tar.gz gdb-206e3a8a5c7bf940cacc468a9b6d2269ea8e6aae.tar.bz2 |
Replace sys_errlist with strerror().
-rw-r--r-- | gdb/29k-share/udi/udip2soc.c | 7 | ||||
-rw-r--r-- | gdb/ChangeLog | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/29k-share/udi/udip2soc.c b/gdb/29k-share/udi/udip2soc.c index 19540f8..969e850 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 0de8976..3297653 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 |