From: Rich Felker Date: Fri, 7 Sep 2018 23:49:21 +0000 (-0400) Subject: fix type-mismatched declarations of __nl_langinfo_l in source files X-Git-Tag: v1.1.21~147 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=405102dc5034967f228e8a0a2f25a142caa55400;p=oweals%2Fmusl.git fix type-mismatched declarations of __nl_langinfo_l in source files obviously the type "should be" const, but it inherited non-const from the standard nl_langinfo_l. --- diff --git a/src/time/asctime_r.c b/src/time/asctime_r.c index 1278311e..d1639ab0 100644 --- a/src/time/asctime_r.c +++ b/src/time/asctime_r.c @@ -5,7 +5,7 @@ #include "atomic.h" #include "libc.h" -const char *__nl_langinfo_l(nl_item, locale_t); +char *__nl_langinfo_l(nl_item, locale_t); char *__asctime_r(const struct tm *restrict tm, char *restrict buf) { diff --git a/src/time/strftime.c b/src/time/strftime.c index d3f2add9..5d2484ed 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -9,7 +9,7 @@ #include "libc.h" #include "time_impl.h" -const char *__nl_langinfo_l(nl_item, locale_t); +char *__nl_langinfo_l(nl_item, locale_t); static int is_leap(int y) {