summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
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/repl
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/repl')
-rw-r--r--source4/dsdb/repl/drepl_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c
index 1423827847..2c436172f1 100644
--- a/source4/dsdb/repl/drepl_service.c
+++ b/source4/dsdb/repl/drepl_service.c
@@ -347,7 +347,7 @@ static NTSTATUS drepl_take_FSMO_role(struct irpc_message *msg,
{
struct dreplsrv_service *service = talloc_get_type(msg->private_data,
struct dreplsrv_service);
- r->out.result = werror_to_ntstatus(dreplsrv_fsmo_role_check(service, r->in.role));
+ r->out.result = dreplsrv_fsmo_role_check(service, r->in.role);
return NT_STATUS_OK;
}