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;
}
#include "lutil.h"
static const char style_base[] = "base";
-static char *style_strings[] = {
+char *style_strings[] = {
"regex",
"expand",
"exact",
/*
* 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 ));