From: Jose Rubio Date: Sun, 13 Oct 2019 08:19:00 +0000 (+0200) Subject: get rid of the 'extern sys_errlist' and 'sys_nerr' in SysErrorMsg. X-Git-Tag: 2.3.1~26^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08cea15be5239fab23eac9b334812f49ce4df98a;p=oweals%2Fcde.git get rid of the 'extern sys_errlist' and 'sys_nerr' in SysErrorMsg. --- diff --git a/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c b/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c index 4547f281..d4983450 100644 --- a/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c +++ b/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c @@ -105,12 +105,7 @@ SysErrorMsg( int n ) { -#if !defined(__linux__) && !defined(CSRG_BASED) - extern char *sys_errlist[]; - extern int sys_nerr; -#endif - const char *s = ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error"); - return (s ? s : "no such error"); + return strerror(n); } /*