LibC: sys_errlist should be const char* const

Patch from Anonymous.
This commit is contained in:
Andreas Kling 2019-10-17 09:18:01 +02:00
parent 06f084fedd
commit e51c1aa3d4
Notes: sideshowbarker 2024-07-19 11:40:23 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@
__BEGIN_DECLS
extern const char* sys_errlist[];
extern const char* const sys_errlist[];
extern int sys_nerr;
extern __thread int errno;

View file

@ -334,7 +334,7 @@ char* strncat(char* dest, const char* src, size_t n)
return dest;
}
const char* sys_errlist[] = {
const char* const sys_errlist[] = {
"Success (not an error)",
"Operation not permitted",
"No such file or directory",