From: Markus Armbruster Date: Tue, 6 Jan 2004 20:08:53 +0000 (+0000) Subject: (info): Use ANSI strerror() instead of non-portable sys_errlist[]. X-Git-Tag: v4.2.13~104 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=1333a40bb8e3e6f8a56f831d270c616ebb8f7eb8 (info): Use ANSI strerror() instead of non-portable sys_errlist[]. --- diff --git a/src/lib/commands/info.c b/src/lib/commands/info.c index bc165e7a9..4af391f38 100644 --- a/src/lib/commands/info.c +++ b/src/lib/commands/info.c @@ -37,9 +37,7 @@ #include "misc.h" #include "player.h" #include -#ifdef Rel4 #include -#endif /* Rel4 */ #include #include #if !defined(_WIN32) @@ -97,9 +95,6 @@ int info(void) { extern s_char *infodir; -#if (!defined linux) && (!defined FBSD) && (!defined __linux__) && (!defined __ppc__) - extern s_char *sys_errlist[]; -#endif s_char buf[255]; FILE *fp; s_char *bp; @@ -148,7 +143,7 @@ info(void) } if (fstat(fileno(fp), &statb) < 0) { pr("Cannot read info page for \"%s\" (%s)\n", - dp->d_name, sys_errlist[errno]); + dp->d_name, strerror(errno)); fclose(fp); return RET_SYS; }