summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-07 19:49:21 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:30 -0400
commit405102dc5034967f228e8a0a2f25a142caa55400 (patch)
treef83fdce5b512f0ec1763bfd7f837fdd3fc75c28c
parent60056a8010c3dbaabd713f7a3e4f2963bb921a1b (diff)
downloadmusl-405102dc5034967f228e8a0a2f25a142caa55400.tar.gz
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.
-rw-r--r--src/time/asctime_r.c2
-rw-r--r--src/time/strftime.c2
2 files changed, 2 insertions, 2 deletions
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)
{