summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/common/ldb_attributes.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2008-09-09 17:36:52 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-24 19:40:03 +0200
commit9d849c30bc5dfb4c3b27639c52ba8c2a54d07471 (patch)
tree115e4b33bc4464a3b688804aa2284d3317bcb1be /source4/lib/ldb/common/ldb_attributes.c
parent9261fa997ccda8f89556b644ddd45cd86919ec2e (diff)
downloadsamba-9d849c30bc5dfb4c3b27639c52ba8c2a54d07471.tar.gz
samba-9d849c30bc5dfb4c3b27639c52ba8c2a54d07471.tar.xz
samba-9d849c30bc5dfb4c3b27639c52ba8c2a54d07471.zip
Cosmetic corrections for the LDB library
This commit applies some cosmetic corrections for the LDB library.
Diffstat (limited to 'source4/lib/ldb/common/ldb_attributes.c')
-rw-r--r--source4/lib/ldb/common/ldb_attributes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/common/ldb_attributes.c b/source4/lib/ldb/common/ldb_attributes.c
index 747f2417811..0fbb5e2bfb4 100644
--- a/source4/lib/ldb/common/ldb_attributes.c
+++ b/source4/lib/ldb/common/ldb_attributes.c
@@ -61,7 +61,7 @@ int ldb_schema_attribute_add_with_syntax(struct ldb_context *ldb,
struct ldb_schema_attribute, n);
if (a == NULL) {
ldb_oom(ldb);
- return -1;
+ return LDB_ERR_OPERATIONS_ERROR;
}
ldb->schema.attributes = a;
@@ -70,7 +70,7 @@ int ldb_schema_attribute_add_with_syntax(struct ldb_context *ldb,
if (cmp == 0) {
/* silently ignore attempts to overwrite fixed attributes */
if (a[i].flags & LDB_ATTR_FLAG_FIXED) {
- return 0;
+ return LDB_SUCCESS;
}
if (a[i].flags & LDB_ATTR_FLAG_ALLOCATED) {
talloc_free(discard_const_p(char, a[i].name));
@@ -93,11 +93,11 @@ int ldb_schema_attribute_add_with_syntax(struct ldb_context *ldb,
a[i].name = talloc_strdup(a, a[i].name);
if (a[i].name == NULL) {
ldb_oom(ldb);
- return -1;
+ return LDB_ERR_OPERATIONS_ERROR;
}
}
- return 0;
+ return LDB_SUCCESS;
}
static const struct ldb_schema_syntax ldb_syntax_default = {