Format fix: Make style_strings[] global for debug output in dynacl_aci_parse()

This commit is contained in:
Hallvard Furuseth 2005-07-04 06:25:02 +00:00
parent 40c91251e6
commit a1e27aae40
3 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -39,7 +39,7 @@
#include "lutil.h"
static const char style_base[] = "base";
static char *style_strings[] = {
char *style_strings[] = {
"regex",
"expand",
"exact",

View file

@ -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 ));