From 4d54b602bde941313590f12364d4ed348673264e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 30 Apr 2021 21:52:00 +0200 Subject: printing: Avoid a few references to background_lpq_updater_pid We have the bgqd in the pidfile now Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue May 11 23:45:21 UTC 2021 on sn-devel-184 --- source3/printing/printing.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/printing/printing.c') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 219e9050eb6..982eb4f9cdd 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1553,8 +1553,6 @@ void print_queue_receive(struct messaging_context *msg, update the internal database from the system print queue for a queue ****************************************************************************/ -extern pid_t background_lpq_updater_pid; - static void print_queue_update(struct messaging_context *msg_ctx, int snum, bool force) { @@ -1679,8 +1677,7 @@ static void print_queue_update(struct messaging_context *msg_ctx, /* finally send the message */ - messaging_send_buf(msg_ctx, pid_to_procid(background_lpq_updater_pid), - MSG_PRINTER_UPDATE, (uint8_t *)buffer, len); + send_to_bgqd(msg_ctx, MSG_PRINTER_UPDATE, (uint8_t *)buffer, len); SAFE_FREE( buffer ); -- cgit v1.2.1