summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-27 14:40:53 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-27 16:03:42 +0100
commit258dc02a9db9280b43d336eecf4a63df790c1945 (patch)
tree2d506f625a21e6d04792fd6722f22a58aefb4c6f /source4/dsdb/repl
parentd613f91a74be13cde375ad742b9dab3af2a75935 (diff)
downloadsamba-258dc02a9db9280b43d336eecf4a63df790c1945.tar.gz
samba-258dc02a9db9280b43d336eecf4a63df790c1945.tar.bz2
samba-258dc02a9db9280b43d336eecf4a63df790c1945.zip
s4:role transfer - use always type "enum drepl_role_master" for role specifications
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 27 16:03:43 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/drepl_fsmo.c5
-rw-r--r--source4/dsdb/repl/drepl_service.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/dsdb/repl/drepl_fsmo.c b/source4/dsdb/repl/drepl_fsmo.c
index ad655f77b9..98bc1c1b7a 100644
--- a/source4/dsdb/repl/drepl_fsmo.c
+++ b/source4/dsdb/repl/drepl_fsmo.c
@@ -30,8 +30,7 @@
#include "smbd/service.h"
#include "dsdb/repl/drepl_service.h"
#include "param/param.h"
-#include "lib/messaging/irpc.h"
-#include "librpc/gen_ndr/ndr_irpc.h"
+#include "librpc/gen_ndr/irpc.h"
static void drepl_role_callback(struct dreplsrv_service *service,
WERROR werr,
@@ -59,7 +58,7 @@ static bool fsmo_master_cmp(struct ldb_dn *ntds_dn, struct ldb_dn *role_owner_dn
see which role is we are asked to assume, initialize data and send request
*/
WERROR dreplsrv_fsmo_role_check(struct dreplsrv_service *service,
- uint32_t role)
+ enum drepl_role_master role)
{
struct ldb_dn *role_owner_dn, *fsmo_role_dn, *ntds_dn;
TALLOC_CTX *tmp_ctx = talloc_new(service);
diff --git a/source4/dsdb/repl/drepl_service.h b/source4/dsdb/repl/drepl_service.h
index 48b084f45b..ffff0bf08b 100644
--- a/source4/dsdb/repl/drepl_service.h
+++ b/source4/dsdb/repl/drepl_service.h
@@ -233,6 +233,8 @@ struct dreplsrv_service {
bool am_rodc;
};
+enum drepl_role_master;
+
#include "dsdb/repl/drepl_out_helpers.h"
#include "dsdb/repl/drepl_service_proto.h"