/* index.c - index utilities */
/* $OpenLDAP$ */
/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
return( prefix );
}
-int slap_str2index( const char *str, slap_index *idx )
+int slap_str2index( const char *str, slap_mask_t *idx )
{
if ( strcasecmp( str, "pres" ) == 0 ) {
*idx = SLAP_INDEX_PRESENT;
strcasecmp( str, "sub" ) == 0 )
{
*idx = SLAP_INDEX_SUBSTR_DEFAULT;
- } else if ( strcasecmp( str, "lang" ) == 0 ) {
- *idx = SLAP_INDEX_LANG;
- } else if ( strcasecmp( str, "autolang" ) == 0 ) {
- *idx = SLAP_INDEX_AUTO_LANG;
- } else if ( strcasecmp( str, "subtypes" ) == 0 ) {
- *idx = SLAP_INDEX_SUBTYPES;
- } else if ( strcasecmp( str, "autosubtypes" ) == 0 ) {
- *idx = SLAP_INDEX_AUTO_SUBTYPES;
+ } else if ( strcasecmp( str, "nolang" ) == 0 ) {
+ *idx = SLAP_INDEX_NOLANG;
+ } else if ( strcasecmp( str, "nosubtypes" ) == 0 ) {
+ *idx = SLAP_INDEX_NOSUBTYPES;
} else {
return LDAP_OTHER;
}