mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
misc cleanup
This commit is contained in:
parent
fd7e23c188
commit
30831a4012
@ -262,7 +262,7 @@ bdb_search(
|
||||
|
||||
/* if not root and candidates exceed to-be-checked entries, abort */
|
||||
if ( !isroot && limit->lms_s_unchecked != -1 ) {
|
||||
if ( BDB_IDL_N(candidates) > limit->lms_s_unchecked ) {
|
||||
if ( BDB_IDL_N(candidates) > (unsigned) limit->lms_s_unchecked ) {
|
||||
send_search_result( conn, op,
|
||||
LDAP_UNWILLING_TO_PERFORM,
|
||||
NULL, NULL, NULL, NULL, 0 );
|
||||
|
@ -58,7 +58,7 @@ glue_back_select (
|
||||
int i;
|
||||
|
||||
bv.bv_len = strlen(dn);
|
||||
bv.bv_val = dn;
|
||||
bv.bv_val = (char *) dn;
|
||||
|
||||
for (i = 0; be->be_nsuffix[i]; i++) {
|
||||
if (dn_issuffixbv (&bv, be->be_nsuffix[i]))
|
||||
@ -321,7 +321,7 @@ glue_back_search (
|
||||
op->o_sresult = glue_back_sresult;
|
||||
op->o_response = glue_back_response;
|
||||
bv.bv_len = strlen(ndn);
|
||||
bv.bv_val = ndn;
|
||||
bv.bv_val = (char *) ndn;
|
||||
|
||||
/*
|
||||
* Execute in reverse order, most general first
|
||||
|
@ -15,8 +15,6 @@
|
||||
#include <ac/string.h>
|
||||
#include <ac/socket.h>
|
||||
|
||||
#include <ldap_log.h>
|
||||
|
||||
#include "slap.h"
|
||||
|
||||
#include "../../libraries/liblber/lber-int.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "ldap_utf8.h"
|
||||
|
||||
#include "lutil_hash.h"
|
||||
/* We should replace MD5 with a faster hash */
|
||||
#define HASH_BYTES LUTIL_HASH_BYTES
|
||||
#define HASH_CONTEXT lutil_HASH_CTX
|
||||
#define HASH_Init(c) lutil_HASHInit(c)
|
||||
|
Loading…
Reference in New Issue
Block a user