From e0f0a144db83dbc8fcf89cb5f9b32f3077e3638f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 22 Jun 2006 23:40:20 +0000 Subject: [PATCH] * glob.c (collated_compare): Remove 'const' uses that weren't needed. --- lib/ChangeLog | 7 +++++++ lib/glob.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 82fa69427b..8ea50832eb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2006-06-22 Paul Eggert + + * glob.c (collated_compare): Remove 'const' uses that weren't needed. + Some compiler complained about some of them. Problem reported by + Larry Jones in + . + 2006-06-21 Simon Josefsson * getaddrinfo.c (getaddrinfo): Set ai_family in the return diff --git a/lib/glob.c b/lib/glob.c index 265377e799..28ca8a06b0 100644 --- a/lib/glob.c +++ b/lib/glob.c @@ -909,8 +909,8 @@ libc_hidden_def (globfree) 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; -- 2.30.2