Commit d262aae7 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix misinitialized UNDEFINED attribute type; reordered members of...

fix misinitialized UNDEFINED attribute type; reordered members of AttributeType because I don't know a portable way to statically initialize a mutex :)
parent a4c9c2c0
......@@ -217,15 +217,17 @@ struct slap_schema_ad_map {
};
static AttributeType slap_at_undefined = {
"UNDEFINED", /* cname */
{ "1.1.1", NULL, NULL, 1, NULL,
NULL, NULL, NULL, NULL,
0, 0, 0, 1, 3 },
0, 0, 0, 1, 3 }, /* LDAPAttributeType */
{ sizeof( "UNDEFINED" ) - 1, "UNDEFINED" }, /* cname */
NULL, /* sup */
NULL, /* subtypes */
NULL, NULL, NULL, NULL, /* matching rules */
NULL, /* syntax (this may need to be defined) */
NULL, /* attribute description */
NULL /* next */
/* mutex (don't know how to initialize it :) */
};
struct slap_schema_mr_map {
......
......@@ -378,9 +378,9 @@ typedef struct slap_attribute_type {
MatchingRule *sat_ordering;
MatchingRule *sat_substr;
Syntax *sat_syntax;
ldap_pvt_thread_mutex_t sat_ad_mutex;
struct slap_attr_desc *sat_ad;
struct slap_attribute_type *sat_next;
ldap_pvt_thread_mutex_t sat_ad_mutex;
#define sat_oid sat_atype.at_oid
#define sat_names sat_atype.at_names
#define sat_desc sat_atype.at_desc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment