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:
parent
0086a7067e
commit
08cea15be5
1 changed files with 1 additions and 6 deletions
|
@ -105,12 +105,7 @@ SysErrorMsg(
|
||||||
int n
|
int n
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
return strerror(n);
|
||||||
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue