fix type-mismatched declarations of __nl_langinfo_l in source files
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2018 23:49:21 +0000 (19:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:30 +0000 (14:34 -0400)
obviously the type "should be" const, but it inherited non-const from
the standard nl_langinfo_l.

src/time/asctime_r.c
src/time/strftime.c

index 1278311..d1639ab 100644 (file)
@@ -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)
 {
index d3f2add..5d2484e 100644 (file)
@@ -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)
 {