]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_prep.c
Add a default case with assert() just in case.
[openldap] / servers / slapd / schema_prep.c
index e10076f94de789957e5598c30be3519b251f9670..43c2871bf38808f3edd32fb183b96a9541ca2036 100644 (file)
@@ -165,7 +165,7 @@ static struct slap_schema_oc_map {
                "MAY ( dITStructureRules $ nameForms $ ditContentRules $ "
                        "objectClasses $ attributeTypes $ matchingRules $ "
                        "matchingRuleUse ) )",
-               subentryObjectClass,
+               subentryObjectClass, 0,
                offsetof(struct slap_internal_schema, si_oc_subschema) },
        { "monitor", "( 1.3.6.1.4.1.4203.666.3.2 NAME 'monitor' "
                "DESC 'OpenLDAP system monitoring' "
@@ -183,7 +183,7 @@ static struct slap_schema_oc_map {
                        "SUP top AUXILIARY )",
                dynamicObjectClass, 0,
                offsetof(struct slap_internal_schema, si_oc_dynamicObject) },
-       { NULL, 0 }
+       { NULL, NULL, NULL, 0, 0 }
 };
 
 static AttributeTypeSchemaCheckFN rootDseAttribute;
@@ -536,10 +536,9 @@ static AttributeType slap_at_undefined = {
        NULL, /* subtypes */
        NULL, NULL, NULL, NULL, /* matching rules */
        NULL, /* syntax (this may need to be defined) */
-       (AttributeTypeSchemaCheckFN *) 0, /* schema check function */
-       0, /* schema check flags */
-       NULL, /* attribute description */
-       NULL  /* next */
+       (AttributeTypeSchemaCheckFN *) 0, 0, /* schema check function/mask */
+       NULL, /* next */
+       NULL /* attribute description */
        /* mutex (don't know how to initialize it :) */
 };