This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: search locale archive again after alias expansion
- From: Andreas Schwab <schwab at suse dot de>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>, Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Thu, 26 Feb 2015 10:38:27 +0100
- Subject: Re: search locale archive again after alias expansion
- Authentication-results: sourceware.org; auth=none
- References: <orr4dao5h6 dot fsf at livre dot home> <20130918220004 dot B23492C09F at topped-with-meat dot com> <ory56t31yv dot fsf at livre dot home> <or8uigyac8 dot fsf at free dot home> <oregr8db48 dot fsf at livre dot home> <54E796D1 dot 40502 at redhat dot com> <orioep1apr dot fsf at livre dot home>
Alexandre Oliva <aoliva@redhat.com> writes:
> diff --git a/locale/findlocale.c b/locale/findlocale.c
> index 360f58b..5e2639b 100644
> --- a/locale/findlocale.c
> +++ b/locale/findlocale.c
> @@ -161,7 +161,8 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
> loc_name = (char *) _nl_expand_alias (*name);
> if (loc_name != NULL)
> {
> - data = _nl_load_locale_from_archive (category, &loc_name);
> + data = _nl_load_locale_from_archive (category,
> + (const char **) &loc_name);
Can't you make loc_name a pointer to const?
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."