diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-10-10 11:18:02 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-10-10 11:18:20 +0200 |
commit | 9479563e4836177414c995730adb96d48da9fb22 (patch) | |
tree | b9d9e5f925b699ed5e0fbea26633d7b89362176d /newlib/libc/locale | |
parent | 201bbec6e4266ad95e78c1d88e86c233140435ea (diff) | |
download | newlib-9479563e4836177414c995730adb96d48da9fb22.zip newlib-9479563e4836177414c995730adb96d48da9fb22.tar.gz newlib-9479563e4836177414c995730adb96d48da9fb22.tar.bz2 |
newlib: Drop incorrect const qualifier from __loadlocale parameter
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/locale')
-rw-r--r-- | newlib/libc/locale/locale.c | 4 | ||||
-rw-r--r-- | newlib/libc/locale/setlocale.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index 791a775..4c343e4 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -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); diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h index 25c27cf..a0c8084 100644 --- a/newlib/libc/locale/setlocale.h +++ b/newlib/libc/locale/setlocale.h @@ -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 */ |