diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-05-23 16:35:20 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-06-14 20:52:20 +0200 |
commit | 72bd6885ab18c920c6ed9e76946fd809e70e2abf (patch) | |
tree | f9ef7b6f7a6ef997b6df04e2227e8ab10656963c /source3/printing/spoolssd.c | |
parent | d33c355103406ceb4941a479f34ea33eae8e87a7 (diff) | |
download | samba-72bd6885ab18c920c6ed9e76946fd809e70e2abf.tar.gz |
printing: remove unused arguments from load_printers()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/printing/spoolssd.c')
-rw-r--r-- | source3/printing/spoolssd.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 2b08d580f35..ca1eda91879 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -105,7 +105,7 @@ static void update_conf(struct tevent_context *ev, { change_to_root_user(); lp_load_global(get_dyn_CONFIGFILE()); - load_printers(ev, msg); + load_printers(); spoolss_reopen_logs(spoolss_child_id); if (spoolss_child_id == 0) { @@ -212,13 +212,9 @@ static void spoolss_chld_sig_hup_handler(struct tevent_context *ev, void *siginfo, void *pvt) { - struct messaging_context *msg_ctx; - - msg_ctx = talloc_get_type_abort(pvt, struct messaging_context); - change_to_root_user(); DEBUG(1,("Reloading printers after SIGHUP\n")); - load_printers(ev, msg_ctx); + load_printers(); spoolss_reopen_logs(spoolss_child_id); } @@ -293,7 +289,7 @@ static bool spoolss_child_init(struct tevent_context *ev_ctx, * ourselves. If pcap has not been loaded yet, then ignore, we will get * a message as soon as the bq process completes the reload. */ if (pcap_cache_loaded(NULL)) { - load_printers(ev_ctx, msg_ctx); + load_printers(); } /* try to reinit rpc queues */ @@ -704,7 +700,7 @@ pid_t start_spoolssd(struct tevent_context *ev_ctx, * client enumeration anyway. */ if (pcap_cache_loaded(NULL)) { - load_printers(ev_ctx, msg_ctx); + load_printers(); } mem_ctx = talloc_new(NULL); |