]> git.sur5r.net Git - openldap/commitdiff
Back out my change to ldap_sort_strcasecmp. My mistake from not reading
authorRandy Kunkee <kunkee@openldap.org>
Fri, 24 Sep 1999 18:16:41 +0000 (18:16 +0000)
committerRandy Kunkee <kunkee@openldap.org>
Fri, 24 Sep 1999 18:16:41 +0000 (18:16 +0000)
manpage carefully.  One should pass strcasecmp to ldap_sort_entries, not
ldap_sort_strcasecmp.  Ldap_sort_strcasecmp is for ldap_sort_values, NOT
ldap_sort_entries.

libraries/libldap/sort.c

index 4e766997890c5903d83a968c6547bf57f1a652e7..c62961b7731f6cc9367d45d88f949a6d33f4e273 100644 (file)
@@ -44,7 +44,7 @@ ldap_sort_strcasecmp(
        const void      *b
 )
 {
-       return( strcasecmp( (const char *)a, (const char *)b ) );
+       return( strcasecmp( *(char *const *)a, *(char *const *)b ) );
 }
 
 static int