mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:27:35 +00:00
LibC: sys_errlist should be const char* const
Patch from Anonymous.
This commit is contained in:
parent
06f084fedd
commit
e51c1aa3d4
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
extern const char* sys_errlist[];
|
extern const char* const sys_errlist[];
|
||||||
extern int sys_nerr;
|
extern int sys_nerr;
|
||||||
extern __thread int errno;
|
extern __thread int errno;
|
||||||
|
|
||||||
|
|
|
@ -334,7 +334,7 @@ char* strncat(char* dest, const char* src, size_t n)
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* sys_errlist[] = {
|
const char* const sys_errlist[] = {
|
||||||
"Success (not an error)",
|
"Success (not an error)",
|
||||||
"Operation not permitted",
|
"Operation not permitted",
|
||||||
"No such file or directory",
|
"No such file or directory",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue