libc: Change the return type of strerror from "const char *" to "char *"

to follow up the spec here:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strerror.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-03-20 17:58:42 +08:00
committed by Petro Karashchenko
parent fa42ebace4
commit 6b8274fbd8
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ extern "C"
FAR char *strdup(FAR const char *s);
FAR char *strndup(FAR const char *s, size_t size);
FAR const char *strerror(int);
FAR char *strerror(int);
int strerror_r(int, FAR char *, size_t);
size_t strlen(FAR const char *);
size_t strnlen(FAR const char *, size_t);