1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3:mdssvc: use a helper variable for the service type

No change in behaviour. Simplifies a subsequent logical change.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Ralph Boehme 2019-08-20 16:50:52 +02:00
parent 91f397bec0
commit 78a2d95511

View File

@ -63,6 +63,8 @@ static bool rpc_setup_mdssvc(struct tevent_context *ev_ctx,
NTSTATUS status;
enum rpc_service_mode_e service_mode = rpc_service_mode(t->name);
enum rpc_daemon_type_e mdssvc_type = rpc_mdssd_daemon();
bool external = service_mode != RPC_SERVICE_MODE_EMBEDDED ||
mdssvc_type != RPC_DAEMON_EMBEDDED;
mdssvc_cb.init = mdssvc_init_cb;
mdssvc_cb.shutdown = mdssvc_shutdown_cb;
@ -73,8 +75,7 @@ static bool rpc_setup_mdssvc(struct tevent_context *ev_ctx,
return false;
}
if (service_mode != RPC_SERVICE_MODE_EMBEDDED
|| mdssvc_type != RPC_DAEMON_EMBEDDED) {
if (external) {
return true;
}