bca718
commit 23d43090e0b275e47e09e859823e965a1eb323dc
bca718
Author: Alexandre Oliva <aoliva@redhat.com>
bca718
Date:   Thu Feb 26 02:46:02 2015 -0300
bca718
bca718
    Fix constness error just introduced in findlocale.
bca718
    
bca718
    for  ChangeLog
bca718
    
bca718
    	[BZ #15969]
bca718
    	* locale/findlocale.c (_nl_find_locale): Fix constness error in
bca718
    	the previous change.
bca718
bca718
diff --git a/locale/findlocale.c b/locale/findlocale.c
bca718
index 360f58b..5e2639b 100644
bca718
--- a/locale/findlocale.c
bca718
+++ b/locale/findlocale.c
bca718
@@ -161,7 +161,8 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
bca718
       loc_name = (char *) _nl_expand_alias (*name);
bca718
       if (loc_name != NULL)
bca718
 	{
bca718
-	  data = _nl_load_locale_from_archive (category, &loc_name);
bca718
+	  data = _nl_load_locale_from_archive (category,
bca718
+					       (const char **) &loc_name);
bca718
 	  if (__builtin_expect (data != NULL, 1))
bca718
 	    return data;
bca718
 	}