瀏覽代碼

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 年之前
父節點
當前提交
405102dc50
共有 2 個文件被更改,包括 2 次插入2 次删除
  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)
 {