newlib: Drop incorrect const qualifier from __loadlocale parameter
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
201bbec6e4
commit
9479563e48
|
@ -463,7 +463,7 @@ currentlocale ()
|
|||
extern void __set_ctype (struct __locale_t *, const char *charset);
|
||||
|
||||
char *
|
||||
__loadlocale (struct __locale_t *loc, int category, const char *new_locale)
|
||||
__loadlocale (struct __locale_t *loc, int category, char *new_locale)
|
||||
{
|
||||
/* At this point a full-featured system would just load the locale
|
||||
specific data from the locale files.
|
||||
|
@ -506,7 +506,7 @@ __loadlocale (struct __locale_t *loc, int category, const char *new_locale)
|
|||
|
||||
restart:
|
||||
if (!locale)
|
||||
locale = (char *) new_locale;
|
||||
locale = new_locale;
|
||||
else if (locale != tmp_locale)
|
||||
{
|
||||
locale = __set_locale_from_locale_alias (locale, tmp_locale);
|
||||
|
|
|
@ -195,7 +195,7 @@ struct __locale_t
|
|||
};
|
||||
|
||||
#ifdef _MB_CAPABLE
|
||||
extern char *__loadlocale (struct __locale_t *, int, const char *);
|
||||
extern char *__loadlocale (struct __locale_t *, int, char *);
|
||||
extern const char *__get_locale_env(struct _reent *, int);
|
||||
#endif /* _MB_CAPABLE */
|
||||
|
||||
|
|
Loading…
Reference in New Issue