Mercurial > hg > octave-lojdl > gnulib-hg
changeset 6860:58381f8b1b9b
* glob.c (collated_compare): Remove 'const' uses that weren't needed.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 22 Jun 2006 23:40:20 +0000 |
parents | 7c2b8f387b08 |
children | b82bca6af622 |
files | lib/ChangeLog lib/glob.c |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2006-06-22 Paul Eggert <eggert@cs.ucla.edu> + + * glob.c (collated_compare): Remove 'const' uses that weren't needed. + Some compiler complained about some of them. Problem reported by + Larry Jones in + <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>. + 2006-06-21 Simon Josefsson <jas@extundo.com> * getaddrinfo.c (getaddrinfo): Set ai_family in the return
--- a/lib/glob.c +++ b/lib/glob.c @@ -909,8 +909,8 @@ static int collated_compare (const void *a, const void *b) { - const char *const s1 = *(const char *const * const) a; - const char *const s2 = *(const char *const * const) b; + char *const *ps1 = a; char *s1 = *ps1; + char *const *ps2 = b; char *s2 = *ps2; if (s1 == s2) return 0;