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.
This commit is contained in:
1 parent
60056a8010
commit
405102dc50
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user