Commit 123001c8 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#9386 Address compiler warnings

parent 6b0fc9e0
......@@ -865,7 +865,7 @@ ppolicy_get( Operation *op, Entry *e, PassPolicy *pp )
pp_info *pi = on->on_bi.bi_private;
Attribute *a;
BerVarray vals;
int rc;
int rc = LDAP_SUCCESS;
Entry *pe = NULL;
#if 0
const char *text;
......@@ -1998,7 +1998,6 @@ ppolicy_account_usability_entry_cb( Operation *op, SlapReply *rs )
lockoutEnd = then + pp.pwdLockoutDuration;
}
a = attr_find( e->e_attrs, ad_pwdAccountLockedTime );
if ( (a = attr_find( e->e_attrs, ad_pwdAccountTmpLockoutEnd )) != NULL ) {
then = parse_time( a->a_vals[0].bv_val );
if ( lockoutEnd != -1 && then > lockoutEnd )
......@@ -2272,7 +2271,7 @@ ppolicy_modify( Operation *op, SlapReply *rs )
{
slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
pp_info *pi = on->on_bi.bi_private;
int i, rc, mod_pw_only, pwmod, pwmop = -1, deladd,
int i, rc, mod_pw_only, pwmod = 0, pwmop = -1, deladd,
hsize = 0, hskip;
PassPolicy pp;
Modifications *mods = NULL, *modtail = NULL,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment