summaryrefslogtreecommitdiff
path: root/source3/printing/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing/notify.c')
-rw-r--r--source3/printing/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 37ae003783..23cdcc3361 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -183,7 +183,8 @@ static void print_notify_send_messages_to_printer(struct messaging_context *msg_
}
for (i = 0; i < num_pids; i++) {
- unsigned int q_len = messages_pending_for_pid(pid_to_procid(pid_list[i]));
+ unsigned int q_len = messages_pending_for_pid(
+ msg_ctx, pid_to_procid(pid_list[i]));
if (q_len > 1000) {
DEBUG(5, ("print_notify_send_messages_to_printer: discarding notify to printer %s as queue length = %u\n",
printer, q_len ));