diff options
Diffstat (limited to 'ldap/c-sdk')
-rw-r--r-- | ldap/c-sdk/libldap/sort.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/ldap/c-sdk/libldap/sort.c b/ldap/c-sdk/libldap/sort.c index 8a716c818..81ba919d6 100644 --- a/ldap/c-sdk/libldap/sort.c +++ b/ldap/c-sdk/libldap/sort.c @@ -51,19 +51,6 @@ #include "ldap-int.h" -/* This xp_qsort fixes a memory problem (ABR) on Solaris for the client. - * Server is welcome to use it too, but I wasn't sure if it - * would be ok to use XP code here. -slamm - * - * We don't want to require use of libxp when linking with libldap, so - * I'll leave use of xp_qsort as a MOZILLA_CLIENT-only thing for now. --mcs - */ -#if defined(MOZILLA_CLIENT) && defined(SOLARIS) -#include "xp_qsort.h" -#else -#define XP_QSORT qsort -#endif - typedef struct keycmp { void *kc_arg; LDAP_KEYCMP_CALLBACK *kc_cmp; @@ -142,7 +129,7 @@ ldap_keysort_entries( } last = e; - XP_QSORT( (void*)kt, count, (size_t)sizeof(keything_t*), ldapi_keycmp ); + qsort( (void*)kt, count, (size_t)sizeof(keything_t*), ldapi_keycmp ); ep = chain; for ( i = 0; i < count; i++ ) { @@ -295,7 +282,7 @@ ldap_multisort_entries( last = e; et_cmp_fn = (LDAP_CHARCMP_CALLBACK *)cmp; - XP_QSORT( (void *) et, (size_t) count, + qsort( (void *) et, (size_t) count, (size_t) sizeof(struct entrything), et_cmp ); ep = chain; @@ -349,7 +336,7 @@ ldap_sort_values( for ( nel = 0; vals[nel] != NULL; nel++ ) ; /* NULL */ - XP_QSORT( vals, nel, sizeof(char *), (LDAP_VOIDCMP_CALLBACK *)cmp ); + qsort( vals, nel, sizeof(char *), (LDAP_VOIDCMP_CALLBACK *)cmp ); return( LDAP_SUCCESS ); } |