From 85e8b309d5425ce8e220b3b0145275c19282b6cf Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 16 Nov 2008 03:22:27 +0000 Subject: [PATCH] Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check --- servers/slapd/acl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 7e7c0aee81..d04f1df005 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -243,10 +243,9 @@ slap_access_allowed( /* DN matches */ for ( i = 0; i < dnmaxcount && dn_data[i].rm_eo > 0; i++ ) { - char *debugmsg = "=> match[dn%d]: %d %d "; char *data = e->e_ndn; - Debug( LDAP_DEBUG_ACL, debugmsg, i, + Debug( LDAP_DEBUG_ACL, "=> match[dn%d]: %d %d ", i, (int)dn_data[i].rm_so, (int)dn_data[i].rm_eo ); if ( dn_data[i].rm_so <= dn_data[0].rm_eo ) { @@ -262,10 +261,9 @@ slap_access_allowed( /* val matches */ for ( i = 0; i < valmaxcount && val_data[i].rm_eo > 0; i++ ) { - char *debugmsg = "=> match[val%d]: %d %d "; char *data = val->bv_val; - Debug( LDAP_DEBUG_ACL, debugmsg, i, + Debug( LDAP_DEBUG_ACL, "=> match[val%d]: %d %d ", i, (int)val_data[i].rm_so, (int)val_data[i].rm_eo ); if ( val_data[i].rm_so <= val_data[0].rm_eo ) { -- 2.39.5