summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-05-13 17:13:57 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-05-14 05:56:59 +1000
commit6df4aece1df6f0e24f75736999cda4b33d2d3750 (patch)
tree286a3507c070366d442b9679a5d0d90e9c9b71dd /source4/dsdb/schema
parent5182b10b7a78df787ab229715c741c8240bc448f (diff)
downloadsamba-6df4aece1df6f0e24f75736999cda4b33d2d3750.tar.gz
samba-6df4aece1df6f0e24f75736999cda4b33d2d3750.tar.bz2
samba-6df4aece1df6f0e24f75736999cda4b33d2d3750.zip
dsdb:schema Use str_list_make_empty() to create an empty list
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_inferiors.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/dsdb/schema/schema_inferiors.c b/source4/dsdb/schema/schema_inferiors.c
index 28f44ab263..fc1845bb42 100644
--- a/source4/dsdb/schema/schema_inferiors.c
+++ b/source4/dsdb/schema/schema_inferiors.c
@@ -42,7 +42,7 @@ static char **schema_supclasses(struct dsdb_schema *schema, struct dsdb_class *s
return schema_class->supclasses;
}
- list = str_list_make(schema_class, NULL, NULL);
+ list = str_list_make_empty(schema_class);
if (list == NULL) {
DEBUG(0,(__location__ " out of memory\n"));
return NULL;
@@ -76,7 +76,7 @@ static char **schema_supclasses(struct dsdb_schema *schema, struct dsdb_class *s
*/
static char **schema_subclasses(struct dsdb_schema *schema, TALLOC_CTX *mem_ctx, char **oclist)
{
- char **list = str_list_make(mem_ctx, NULL, NULL);
+ char **list = str_list_make_empty(mem_ctx);
int i;
for (i=0; oclist && oclist[i]; i++) {
@@ -94,7 +94,7 @@ static char **schema_posssuperiors(struct dsdb_schema *schema,
struct dsdb_class *schema_class)
{
if (schema_class->posssuperiors == NULL) {
- char **list2 = str_list_make(schema_class, NULL, NULL);
+ char **list2 = str_list_make_empty(schema_class);
char **list3;
int i;
@@ -134,7 +134,7 @@ static void schema_create_subclasses(struct dsdb_schema *schema)
struct dsdb_class *schema_class2 = dsdb_class_by_lDAPDisplayName(schema, schema_class->subClassOf);
if (schema_class != schema_class2) {
if (schema_class2->subclasses_direct == NULL) {
- schema_class2->subclasses_direct = str_list_make(schema_class2, NULL, NULL);
+ schema_class2->subclasses_direct = str_list_make_empty(schema_class2);
}
schema_class2->subclasses_direct = str_list_add_const(schema_class2->subclasses_direct,
schema_class->lDAPDisplayName);
@@ -157,7 +157,7 @@ static void schema_fill_possible_inferiors(struct dsdb_schema *schema, struct ds
&& c2->objectClassCategory != 3
&& str_list_check(superiors, schema_class->lDAPDisplayName)) {
if (schema_class->possibleInferiors == NULL) {
- schema_class->possibleInferiors = str_list_make(schema_class, NULL, NULL);
+ schema_class->possibleInferiors = str_list_make_empty(schema_class);
}
schema_class->possibleInferiors = str_list_add_const(schema_class->possibleInferiors,
c2->lDAPDisplayName);