From 63a0e6b527a063ba0a3bc71f55e16c0f85c64fb6 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 27 Oct 1998 03:42:14 +0000 Subject: Replace syserr_list with more portable strerror(). --- gdb/29k-share/udi/udip2soc.c | 4 ++-- gdb/ChangeLog | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/29k-share/udi/udip2soc.c b/gdb/29k-share/udi/udip2soc.c index aa25e00..19540f8 100644 --- a/gdb/29k-share/udi/udip2soc.c +++ b/gdb/29k-share/udi/udip2soc.c @@ -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; } diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 455a951..9f30779 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 21 08:44:30 1998 Andrew Cagney + + * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror(). + Thu Oct 22 09:56:55 1998 Andrew Cagney * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here. -- cgit v1.1