mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
Format fix: Make style_strings[] global for debug output in dynacl_aci_parse()
This commit is contained in:
parent
40c91251e6
commit
a1e27aae40
3 changed files with 4 additions and 2 deletions
|
|
@ -3173,7 +3173,7 @@ dynacl_aci_parse( const char *fname, int lineno, slap_style_t sty, const char *r
|
|||
if ( sty != ACL_STYLE_REGEX && sty != ACL_STYLE_BASE ) {
|
||||
fprintf( stderr, "%s: line %d: "
|
||||
"inappropriate style \"%s\" in \"aci\" by clause\n",
|
||||
fname, lineno, sty );
|
||||
fname, lineno, style_strings[sty] );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
#include "lutil.h"
|
||||
|
||||
static const char style_base[] = "base";
|
||||
static char *style_strings[] = {
|
||||
char *style_strings[] = {
|
||||
"regex",
|
||||
"expand",
|
||||
"exact",
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ LDAP_SLAPD_F (int) acl_init LDAP_P(( void ));
|
|||
/*
|
||||
* aclparse.c
|
||||
*/
|
||||
LDAP_SLAPD_V (char *) style_strings[];
|
||||
|
||||
LDAP_SLAPD_F (void) parse_acl LDAP_P(( Backend *be,
|
||||
const char *fname, int lineno,
|
||||
int argc, char **argv, int pos ));
|
||||
|
|
|
|||
Loading…
Reference in a new issue