Debug( LDAP_DEBUG_ANY,
"%s constraint_violation uri filter=\"%s\" invalid\n",
op->o_log_prefix, filterstr.bv_val, 0 );
+ rc = LDAP_OTHER;
} else {
Debug(LDAP_DEBUG_TRACE,
}
op->o_tmpfree(filterstr.bv_val, op->o_tmpmemctx);
- if((rc != LDAP_SUCCESS) && (rc != LDAP_NO_SUCH_OBJECT)) {
+ if ((rc != LDAP_SUCCESS) && (rc != LDAP_NO_SUCH_OBJECT)) {
return rc; /* unexpected error */
}
Debug(LDAP_DEBUG_TRACE,
"==> constraint_add, "
- "a->a_numvals = %d, cp->count = %d\n",
- a->a_numvals, cp->count, 0);
+ "a->a_numvals = %u, cp->count = %lu\n",
+ a->a_numvals, (unsigned long) cp->count, 0);
if ((cp->count != 0) && (a->a_numvals > cp->count)) {
rc = LDAP_CONSTRAINT_VIOLATION;
rc = LDAP_CONSTRAINT_VIOLATION;
for(;m; m = m->sml_next) {
- int ce = 0;
+ unsigned ce = 0;
if (is_at_operational( m->sml_desc->ad_type )) continue;
}
if (cp->count != 0) {
- int ca;
+ unsigned ca;
if (m->sml_op == LDAP_MOD_DELETE)
ce = 0;
for (ca = 0; b[ca].bv_val; ++ca);
Debug(LDAP_DEBUG_TRACE,
- "==> constraint_update ce = %d, "
- "ca = %d, cp->count = %d\n",
- ce, ca, cp->count);
+ "==> constraint_update ce = %u, "
+ "ca = %u, cp->count = %lu\n",
+ ce, ca, (unsigned long) cp->count);
if (m->sml_op == LDAP_MOD_ADD) {
if (ca + ce > cp->count) {