mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Cleanup
This commit is contained in:
parent
d49a477702
commit
e404a15082
@ -746,7 +746,7 @@ ldif_back_bind( Operation *op, SlapReply *rs )
|
|||||||
static int ldif_back_search(Operation *op, SlapReply *rs)
|
static int ldif_back_search(Operation *op, SlapReply *rs)
|
||||||
{
|
{
|
||||||
struct ldif_info *ni = (struct ldif_info *) op->o_bd->be_private;
|
struct ldif_info *ni = (struct ldif_info *) op->o_bd->be_private;
|
||||||
enumCookie ck = {0};
|
enumCookie ck = { NULL, NULL, NULL, 0, 0 };
|
||||||
|
|
||||||
ck.op = op;
|
ck.op = op;
|
||||||
ck.rs = rs;
|
ck.rs = rs;
|
||||||
|
@ -2115,7 +2115,7 @@ replica_unparse( struct slap_replica_info *ri, int i, struct berval *bv )
|
|||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
struct berval bc = {0};
|
struct berval bc = BER_BVNULL;
|
||||||
char numbuf[32];
|
char numbuf[32];
|
||||||
|
|
||||||
len = sprintf(numbuf, IFMT, i );
|
len = sprintf(numbuf, IFMT, i );
|
||||||
|
@ -204,7 +204,7 @@ fe_op_delete( Operation *op, SlapReply *rs )
|
|||||||
{
|
{
|
||||||
op->o_delete_glue_parent = 0;
|
op->o_delete_glue_parent = 0;
|
||||||
if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) {
|
if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) {
|
||||||
slap_callback cb = { NULL };
|
slap_callback cb = { NULL, NULL, NULL, NULL };
|
||||||
cb.sc_response = slap_null_cb;
|
cb.sc_response = slap_null_cb;
|
||||||
dnParent( &op->o_req_ndn, &pdn );
|
dnParent( &op->o_req_ndn, &pdn );
|
||||||
op->o_req_dn = pdn;
|
op->o_req_dn = pdn;
|
||||||
|
@ -181,7 +181,7 @@ struct option_helper {
|
|||||||
const char *oh_usage;
|
const char *oh_usage;
|
||||||
} option_helpers[] = {
|
} option_helpers[] = {
|
||||||
{ BER_BVC("slp"), slapd_opt_slp, NULL, "slp[={on|off}] enable/disable SLP" },
|
{ BER_BVC("slp"), slapd_opt_slp, NULL, "slp[={on|off}] enable/disable SLP" },
|
||||||
{ BER_BVNULL }
|
{ BER_BVNULL, 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -147,7 +147,7 @@ slap_sasl_log(
|
|||||||
static const char *slap_propnames[] = {
|
static const char *slap_propnames[] = {
|
||||||
"*slapConn", "*slapAuthcDN", "*slapAuthzDN", NULL };
|
"*slapConn", "*slapAuthcDN", "*slapAuthzDN", NULL };
|
||||||
|
|
||||||
static Filter generic_filter = { LDAP_FILTER_PRESENT };
|
static Filter generic_filter = { LDAP_FILTER_PRESENT, { 0 }, NULL };
|
||||||
static struct berval generic_filterstr = BER_BVC("(objectclass=*)");
|
static struct berval generic_filterstr = BER_BVC("(objectclass=*)");
|
||||||
|
|
||||||
#define PROP_CONN 0
|
#define PROP_CONN 0
|
||||||
|
@ -535,8 +535,8 @@ do_syncrep2(
|
|||||||
|
|
||||||
int syncstate;
|
int syncstate;
|
||||||
struct berval syncUUID = BER_BVNULL;
|
struct berval syncUUID = BER_BVNULL;
|
||||||
struct sync_cookie syncCookie = { 0 };
|
struct sync_cookie syncCookie = { BER_BVNULL };
|
||||||
struct sync_cookie syncCookie_req = { 0 };
|
struct sync_cookie syncCookie_req = { BER_BVNULL };
|
||||||
struct berval cookie = BER_BVNULL;
|
struct berval cookie = BER_BVNULL;
|
||||||
|
|
||||||
int rc, err, i;
|
int rc, err, i;
|
||||||
@ -1205,7 +1205,7 @@ syncrepl_entry(
|
|||||||
struct berval* syncCSN )
|
struct berval* syncCSN )
|
||||||
{
|
{
|
||||||
Backend *be = op->o_bd;
|
Backend *be = op->o_bd;
|
||||||
slap_callback cb = { NULL };
|
slap_callback cb = { NULL, NULL, NULL, NULL };
|
||||||
struct berval *syncuuid_bv = NULL;
|
struct berval *syncuuid_bv = NULL;
|
||||||
struct berval syncUUID_strrep = BER_BVNULL;
|
struct berval syncUUID_strrep = BER_BVNULL;
|
||||||
struct berval uuid_bv = BER_BVNULL;
|
struct berval uuid_bv = BER_BVNULL;
|
||||||
|
@ -711,7 +711,7 @@ retry:
|
|||||||
}
|
}
|
||||||
|
|
||||||
{ /* set version 3 */
|
{ /* set version 3 */
|
||||||
int err, version = 3;
|
int err, version = LDAP_VERSION3;
|
||||||
err = ldap_set_option(ri->ri_ldp,
|
err = ldap_set_option(ri->ri_ldp,
|
||||||
LDAP_OPT_PROTOCOL_VERSION, &version);
|
LDAP_OPT_PROTOCOL_VERSION, &version);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user