summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 15:51:30 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:34 +0200
commitc50c973036cda52c0ce04a5220168fbfa7195dc0 (patch)
tree5f7a8a2da4a77fe80d57387614b271c613c07840 /source3/printing
parenta4c27786ffe3b9513a0e64ce25f37dfe0ff0dc1b (diff)
downloadsamba-c50c973036cda52c0ce04a5220168fbfa7195dc0.tar.gz
samba-c50c973036cda52c0ce04a5220168fbfa7195dc0.tar.bz2
samba-c50c973036cda52c0ce04a5220168fbfa7195dc0.zip
s3: Lift the server_messaging_context from print_job_end
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 91ea09b28f..581783997b 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2749,7 +2749,8 @@ void print_job_endpage(int snum, uint32 jobid)
error.
****************************************************************************/
-NTSTATUS print_job_end(int snum, uint32 jobid, enum file_close_type close_type)
+NTSTATUS print_job_end(struct messaging_context *msg_ctx, int snum,
+ uint32 jobid, enum file_close_type close_type)
{
const char* sharename = lp_const_servicename(snum);
struct printjob *pjob;
@@ -2834,7 +2835,7 @@ NTSTATUS print_job_end(int snum, uint32 jobid, enum file_close_type close_type)
/* make sure the database is up to date */
if (print_cache_expired(lp_const_servicename(snum), True))
- print_queue_update(server_messaging_context(), snum, False);
+ print_queue_update(msg_ctx, snum, False);
return NT_STATUS_OK;