summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-08 18:55:23 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-09 09:35:35 +0200
commit87a38d77ac899d8b6e21c7bcaeb8d4b74ed65341 (patch)
treee4dc95df90c855a1b41dfda242aee0cdde95889e /source4/dsdb
parent27f1779814accd82a5ec1330f8856192a69271f8 (diff)
downloadsamba-87a38d77ac899d8b6e21c7bcaeb8d4b74ed65341.tar.gz
samba-87a38d77ac899d8b6e21c7bcaeb8d4b74ed65341.tar.bz2
samba-87a38d77ac899d8b6e21c7bcaeb8d4b74ed65341.zip
s4:dsdb/schema_convert_to_ol.c - quiet enum warning
Introduce a error message when choosing wrong targets. Reviewed-by: Tridge
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_convert_to_ol.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_convert_to_ol.c b/source4/dsdb/schema/schema_convert_to_ol.c
index 77a9b1f291..3d910da967 100644
--- a/source4/dsdb/schema/schema_convert_to_ol.c
+++ b/source4/dsdb/schema/schema_convert_to_ol.c
@@ -145,6 +145,9 @@ static char *print_schema_recursive(char *append_to_string, struct dsdb_schema *
case TARGET_FEDORA_DS:
out = talloc_asprintf_append(out, "objectClasses: %s\n", schema_entry);
break;
+ default:
+ DEBUG(0, ("Wrong type of target!\n"));
+ return NULL;
}
talloc_free(mem_ctx);
} while (0);
@@ -274,6 +277,9 @@ char *dsdb_convert_schema_to_openldap(struct ldb_context *ldb, char *target_str,
case TARGET_FEDORA_DS:
out = talloc_strdup(mem_ctx, "dn: cn=schema\n");
break;
+ default:
+ DEBUG(0, ("Wrong type of target!\n"));
+ return NULL;
}
for (attribute=schema->attributes; attribute; attribute = attribute->next) {
@@ -350,6 +356,9 @@ char *dsdb_convert_schema_to_openldap(struct ldb_context *ldb, char *target_str,
case TARGET_FEDORA_DS:
out = talloc_asprintf_append(out, "attributeTypes: %s\n", schema_entry);
break;
+ default:
+ DEBUG(0, ("Wrong type of target!\n"));
+ return NULL;
}
}