summaryrefslogtreecommitdiff
path: root/ldap
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2019-11-18 00:38:47 -0600
committerMatt A. Tobin <email@mattatobin.com>2019-11-20 00:40:30 -0500
commit21fdc3e93ab2d4361a58b9b66e62a8ef1b3e0f5c (patch)
tree536af702723595004a6939ef4f7c8518ad0a5158 /ldap
parente97cb2f75fd9750bbb96d1eec43b7a968a611f9c (diff)
downloaduxp-21fdc3e93ab2d4361a58b9b66e62a8ef1b3e0f5c.tar.gz
Issue #1251 - Remove obsolete XP_QSORT reference.
I didn't include this in my initial PR because I assumed this part was not relevant to UXP. I was asked to submit this while the MailNews rebase was going on, but I was late with my patch and didn't quite grasp that this specifically was still needed. My counterpart at Mozilla, Petr Sumbara, has gotten his version of this approved. https://bugzilla.mozilla.org/show_bug.cgi?id=1568473
Diffstat (limited to 'ldap')
-rw-r--r--ldap/c-sdk/libldap/sort.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/ldap/c-sdk/libldap/sort.c b/ldap/c-sdk/libldap/sort.c
index 8a716c818b..81ba919d6c 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 );
}