summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-13 15:40:43 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-04-13 15:40:43 +0200
commit34ff1c6944a56365390b252f516b6d3aafc8ac50 (patch)
treec01535c6bbba00c8b51db3b25308232857a76d4d /source4/dsdb
parent1e08449136e87f70d581714284f86f88d54c20fd (diff)
downloadsamba-34ff1c6944a56365390b252f516b6d3aafc8ac50.tar.gz
samba-34ff1c6944a56365390b252f516b6d3aafc8ac50.tar.bz2
samba-34ff1c6944a56365390b252f516b6d3aafc8ac50.zip
s4:samdb_server_site_name - fix indentation
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index d36e1ec1bb..66a0b0f87d 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1545,12 +1545,14 @@ int samdb_rid_set_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_dn
const char *samdb_server_site_name(struct ldb_context *ldb, TALLOC_CTX *mem_ctx)
{
- const struct ldb_val *val = ldb_dn_get_rdn_val(samdb_server_site_dn(ldb, mem_ctx));
+ const struct ldb_val *val = ldb_dn_get_rdn_val(samdb_server_site_dn(ldb,
+ mem_ctx));
- if (val != NULL)
- return (const char *) val->data;
- else
+ if (val == NULL) {
return NULL;
+ }
+
+ return (const char *) val->data;
}
/*