From b133aa528b0f530e5f85f190b6308a203b2b9a2c Mon Sep 17 00:00:00 2001 From: Randy Kunkee Date: Fri, 24 Sep 1999 08:02:54 +0000 Subject: [PATCH] Change call to strcasecmp in ldap_sort_strcasecmp, which makes ldap_sort_entries work with ldap_sort_strcasecmp as the comparison function. Pointers were being dereferenced, and should only have been casted. --- libraries/libldap/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/sort.c b/libraries/libldap/sort.c index c62961b773..4e76699789 100644 --- a/libraries/libldap/sort.c +++ b/libraries/libldap/sort.c @@ -44,7 +44,7 @@ ldap_sort_strcasecmp( const void *b ) { - return( strcasecmp( *(char *const *)a, *(char *const *)b ) ); + return( strcasecmp( (const char *)a, (const char *)b ) ); } static int -- 2.39.5