]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/entry.c
Updated for schemas.
[openldap] / servers / slapd / entry.c
index 4b3f68a5d18383121a27350921de85f34e23a0c3..dd9a95918eb4d7a7af4acf1ae2205c79e0f6309b 100644 (file)
@@ -41,7 +41,7 @@ str2entry( char *s )
        struct berval   *vals[2];
 #ifdef SLAPD_SCHEMA_NOT_COMPAT
        AttributeDescription *ad;
-       char *text;
+       const char *text;
 #else
        int             nvals = 0;
        int             maxvals = 0;
@@ -110,8 +110,8 @@ str2entry( char *s )
                        maxvals = 0;
                        a = NULL;
                }
-#endif
 
+#endif
                if ( strcasecmp( type, "dn" ) == 0 ) {
                        free( type );