Bläddra i källkod

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 6 år sedan
förälder
incheckning
405102dc50
2 ändrade filer med 2 tillägg och 2 borttagningar
  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)
 {