]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/attr.c
Code clean-up.
[openldap] / servers / slapd / back-ldbm / attr.c
index ea9694857fc2897f069c1480224884666c674829..7818fb1ff671eb5e8069b1da43d582ff9efefa42 100644 (file)
@@ -10,8 +10,6 @@
 #include "slap.h"
 #include "back-ldbm.h"
 
-extern char    **str2charray();
-
 static int
 ainfo_type_cmp(
     char               *type,
@@ -103,7 +101,7 @@ attr_index_config(
        }
        for ( i = 0; attrs[i] != NULL; i++ ) {
                a = (struct attrinfo *) ch_malloc( sizeof(struct attrinfo) );
-               a->ai_type = strdup( attrs[i] );
+               a->ai_type = ch_strdup( attrs[i] );
                a->ai_syntaxmask = attr_syntax( a->ai_type );
                if ( argc == 1 ) {
                        a->ai_indexmask = (INDEX_PRESENCE | INDEX_EQUALITY |