Explorar o código

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.
Rich Felker %!s(int64=6) %!d(string=hai) anos
pai
achega
405102dc50
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/time/asctime_r.c
  2. 1 1
      src/time/strftime.c

+ 1 - 1
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)
 {

+ 1 - 1
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)
 {