summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-10 13:44:20 +0300
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-09-10 13:44:20 +0300
commit788bfc8a25849bccc963a4b948c1e5857f2d885c (patch)
treee33b21e611e32f0dbce9b6c7e624e8a58857a598 /source4/dsdb/samdb
parent0ad22777ec44bf7eb35c2d9898ee1843ac308f76 (diff)
downloadsamba-788bfc8a25849bccc963a4b948c1e5857f2d885c.tar.gz
samba-788bfc8a25849bccc963a4b948c1e5857f2d885c.tar.bz2
samba-788bfc8a25849bccc963a4b948c1e5857f2d885c.zip
s4/fsmo: Change return type from NTSTATUS to WERROR for drepl_takeFSMOrole
This removed an unnecessary conversion of the return type in drepl_take_FSMO_role.
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 3397d60119..248a7203c8 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -983,7 +983,8 @@ static int rootdse_become_master(struct ldb_module *module,
struct ldb_context *ldb = ldb_module_get_ctx(module);
TALLOC_CTX *tmp_ctx = talloc_new(req);
struct loadparm_context *lp_ctx = ldb_get_opaque(ldb, "loadparm");
- NTSTATUS status_call, status_fn;
+ NTSTATUS status_call;
+ WERROR status_fn;
struct dcerpc_binding_handle *irpc_handle;
msg = messaging_client_init(tmp_ctx, lpcfg_messaging_path(tmp_ctx, lp_ctx),
@@ -1002,7 +1003,7 @@ static int rootdse_become_master(struct ldb_module *module,
return LDB_ERR_OPERATIONS_ERROR;
}
status_fn = r.out.result;
- if (!NT_STATUS_IS_OK(status_fn)) {
+ if (!W_ERROR_IS_OK(status_fn)) {
return LDB_ERR_OPERATIONS_ERROR;
}
return ldb_module_done(req, NULL, NULL, LDB_SUCCESS);