summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:52:59 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:27 +0200
commitcc280f0cd1f970b044011dee386e15ec87eccec8 (patch)
treeee213b6dadfef0b644cc2a30f4234986f0740fe3 /source3/printing
parent9723f33ef54235b27d0126810fdd7546d2510f23 (diff)
downloadsamba-cc280f0cd1f970b044011dee386e15ec87eccec8.tar.gz
samba-cc280f0cd1f970b044011dee386e15ec87eccec8.tar.bz2
samba-cc280f0cd1f970b044011dee386e15ec87eccec8.zip
s3: Lift the smbd_messaging_context from print_queue_purge
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 26679110f6..9d98d5dff1 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -3107,7 +3107,8 @@ WERROR print_queue_resume(struct auth_serversupplied_info *server_info,
Purge a queue - implemented by deleting all jobs that we can delete.
****************************************************************************/
-WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum)
+WERROR print_queue_purge(struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx, int snum)
{
print_queue_struct *queue;
print_status_struct status;
@@ -3118,7 +3119,7 @@ WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum)
print_queue_update(snum, True);
can_job_admin = print_access_check(server_info,
- smbd_messaging_context(),
+ msg_ctx,
snum,
JOB_ACCESS_ADMINISTER);
njobs = print_queue_status(snum, &queue, &status);