1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

get rid of the 'extern sys_errlist' and 'sys_nerr' in SysErrorMsg.

This commit is contained in:
Jose Rubio 2019-10-13 10:19:00 +02:00
parent 0086a7067e
commit 08cea15be5

View file

@ -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);
}
/*