]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/ad.c
Install *.schema only
[openldap] / servers / slapd / ad.c
index 9b9d636c8940bc1feb0a87396dae392e92bcfccc..0a6e04a3e73ea7e527fa05418133f7c346785b61 100644 (file)
@@ -77,7 +77,7 @@ static int ad_keystring(
 int slap_str2ad(
        const char *str,
        AttributeDescription **ad,
-       char **text )
+       const char **text )
 {
        struct berval bv;
        bv.bv_val = (char *) str;
@@ -89,7 +89,7 @@ int slap_str2ad(
 int slap_bv2ad(
        struct berval *bv,
        AttributeDescription **ad,
-       char **text )
+       const char **text )
 {
        int rtn = LDAP_UNDEFINED_TYPE;
        int i;
@@ -98,7 +98,6 @@ int slap_bv2ad(
 
        assert( ad != NULL );
        assert( *ad == NULL ); /* temporary */
-       assert( *text != NULL );
 
        if( bv == NULL || bv->bv_len == 0 ) {
                *text = "empty attribute description";
@@ -226,7 +225,7 @@ int ad_inlist(
        int i;
        for( i=0; attrs[i] != NULL; i++ ) {
                AttributeDescription *ad = NULL;
-               char *text;
+               const char *text;
                int rc;
                
                rc = slap_str2ad( attrs[i], &ad, &text );