From 49d18478fd952b360221852a0bc0e2f4f6427aea Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Aug 2010 16:16:37 +0200 Subject: s3: Lift the server_messaging_context from notify_printer_status_byname --- source3/utils/smbcontrol.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 9fc8012159..098e07616b 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -593,7 +593,9 @@ static bool do_printnotify(struct messaging_context *msg_ctx, return False; } - notify_printer_status_byname(argv[2], PRINTER_STATUS_PAUSED); + notify_printer_status_byname(messaging_event_context(msg_ctx), + msg_ctx, argv[2], + PRINTER_STATUS_PAUSED); goto send; @@ -605,7 +607,9 @@ static bool do_printnotify(struct messaging_context *msg_ctx, return False; } - notify_printer_status_byname(argv[2], PRINTER_STATUS_OK); + notify_printer_status_byname(messaging_event_context(msg_ctx), + msg_ctx, argv[2], + PRINTER_STATUS_OK); goto send; @@ -621,7 +625,7 @@ static bool do_printnotify(struct messaging_context *msg_ctx, jobid = atoi(argv[3]); notify_job_status_byname( - argv[2], jobid, JOB_STATUS_PAUSED, + argv[2], jobid, JOB_STATUS_PAUSED, SPOOLSS_NOTIFY_MSG_UNIX_JOBID); goto send; -- cgit