提交 405102dc 编写于 作者: R Rich Felker

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.
上级 60056a80
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册