summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-04-30 21:52:00 +0200
committerJeremy Allison <jra@samba.org>2021-05-11 23:45:21 +0000
commit4d54b602bde941313590f12364d4ed348673264e (patch)
treeab560cb3fc6485f749986770d92a5e0c23936b1e /source3/printing/printing.c
parentbad19e208ce3b0ff5a9b99245b815423c3f469bd (diff)
downloadsamba-4d54b602bde941313590f12364d4ed348673264e.tar.gz
printing: Avoid a few references to background_lpq_updater_pid
We have the bgqd in the pidfile now Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue May 11 23:45:21 UTC 2021 on sn-devel-184
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c5
1 files changed, 1 insertions, 4 deletions
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 );