X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fppolicy.c;h=0092cd8fcf8d7106be9045b7f12d83a680f484e9;hb=2dfd312fa12a765a5ad311f6c9bf8dce76a63155;hp=a54181dca658820ee40f545e738f278a2bb31993;hpb=dc0eacd40b625258355eea866d62188e5aa7ce3b;p=openldap diff --git a/libraries/libldap/ppolicy.c b/libraries/libldap/ppolicy.c index a54181dca6..0092cd8fcf 100644 --- a/libraries/libldap/ppolicy.c +++ b/libraries/libldap/ppolicy.c @@ -130,15 +130,15 @@ ldap_parse_passwordpolicy_control( LDAPPasswordPolicyError *errorp ) { BerElement *ber; - int i, exp = -1, grace = -1; + int exp = -1, grace = -1; ber_tag_t tag; ber_len_t berLen; char *last; - LDAPPasswordPolicyError err = PP_noError; + int err = PP_noError; assert( ld != NULL ); assert( LDAP_VALID( ld ) ); - assert( ctrl ); + assert( ctrl != NULL ); /* Create a BerElement from the berval returned in the control. */ ber = ber_init(&ctrl->ldctl_value); @@ -172,7 +172,7 @@ ldap_parse_passwordpolicy_control( break; case PPOLICY_ERROR: - if (ber_get_enum( ber, (int *)&err ) == LBER_DEFAULT) goto exit; + if (ber_get_enum( ber, &err ) == LBER_DEFAULT) goto exit; break; default: goto exit;