From 08cea15be5239fab23eac9b334812f49ce4df98a Mon Sep 17 00:00:00 2001 From: Jose Rubio Date: Sun, 13 Oct 2019 10:19:00 +0200 Subject: [PATCH] get rid of the 'extern sys_errlist' and 'sys_nerr' in SysErrorMsg. --- cde/programs/dtprintinfo/libUI/MotifUI/Debug.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } /* -- 2.25.1