From 23e7e1c15862070b2296b9f24eb5b7e70f2058c4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 10 Aug 2011 15:23:20 -0400 Subject: s3-rpc_server: Replace RPC_SERVICE_MODE_DAEMON checks Use rpc_daemon_type() macros where appropriate instead. Signed-off-by: Andreas Schneider Signed-off-by: Simo Sorce --- source3/printing/queue_process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/printing/queue_process.c') diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c index 9039e5cd08..bd26b02031 100644 --- a/source3/printing/queue_process.c +++ b/source3/printing/queue_process.c @@ -29,7 +29,7 @@ #include "serverid.h" #include "locking/proto.h" #include "smbd/proto.h" -#include "rpc_server/rpc_service_setup.h" +#include "rpc_server/rpc_config.h" #include "printing/load.h" extern pid_t start_spoolssd(struct event_context *ev_ctx, @@ -317,7 +317,6 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx, bool start_daemons, bool background_queue) { - enum rpc_service_mode_e spoolss_mode = rpc_spoolss_mode(); pid_t pid = -1; if (!print_backend_init(msg_ctx)) { @@ -326,7 +325,7 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx, /* start spoolss daemon */ /* start as a separate daemon only if enabled */ - if (start_daemons && spoolss_mode == RPC_SERVICE_MODE_DAEMON) { + if (start_daemons && rpc_spoolss_daemon() == RPC_DAEMON_FORK) { pid = start_spoolssd(ev_ctx, msg_ctx); -- cgit