From: Hallvard Furuseth Date: Sat, 18 Oct 2008 11:42:13 +0000 (+0000) Subject: Fix Debug format (%d, size_t) => (%lu, (unsigned long)value). X-Git-Tag: ACLCHECK_0~1224 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e616dced85b6a0c6c53ef9137f861e6216257cd;p=openldap Fix Debug format (%d, size_t) => (%lu, (unsigned long)value). Warning cleanup: signed meets unsigned. --- diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index c514da31a7..10361909bd 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -786,8 +786,8 @@ constraint_add( Operation *op, SlapReply *rs ) 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; @@ -885,7 +885,7 @@ constraint_update( Operation *op, SlapReply *rs ) 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; @@ -916,7 +916,7 @@ constraint_update( Operation *op, SlapReply *rs ) } if (cp->count != 0) { - int ca; + unsigned ca; if (m->sml_op == LDAP_MOD_DELETE) ce = 0; @@ -924,9 +924,9 @@ constraint_update( Operation *op, SlapReply *rs ) 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) {