]> sourceware.org Git - newlib-cygwin.git/commitdiff
newlib: Drop incorrect const qualifier from __loadlocale parameter
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 10 Oct 2018 09:18:02 +0000 (11:18 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 10 Oct 2018 09:18:20 +0000 (11:18 +0200)
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/libc/locale/locale.c
newlib/libc/locale/setlocale.h

index 791a775175a50490c2d049773e96e68161a7ceb4..4c343e462f97b31402f40cd3276c78eb4fca7fad 100644 (file)
@@ -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);
index 25c27cfac5836ca1519cccf124effa1a8739dd61..a0c80843ae1dcfafc26d0df346f308290842ebe5 100644 (file)
@@ -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 */
 
This page took 0.037115 seconds and 5 git commands to generate.