diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 15:47:51 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 18:09:33 +0200 |
commit | a4c27786ffe3b9513a0e64ce25f37dfe0ff0dc1b (patch) | |
tree | 0ddbd7a99cd7505a139840caa8f160e5d0674b38 /source3/printing | |
parent | 31d23c83fef2b67c3afa4cf1d1f409086f92649d (diff) | |
download | samba-a4c27786ffe3b9513a0e64ce25f37dfe0ff0dc1b.tar.gz samba-a4c27786ffe3b9513a0e64ce25f37dfe0ff0dc1b.tar.bz2 samba-a4c27786ffe3b9513a0e64ce25f37dfe0ff0dc1b.zip |
s3: Lift the server_messaging_context from print_queue_length
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 3140e34e65..91ea09b28f 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2366,7 +2366,8 @@ static int get_queue_status(const char* sharename, print_status_struct *status) Determine the number of jobs in a queue. ****************************************************************************/ -int print_queue_length(int snum, print_status_struct *pstatus) +int print_queue_length(struct messaging_context *msg_ctx, int snum, + print_status_struct *pstatus) { const char* sharename = lp_const_servicename( snum ); print_status_struct status; @@ -2376,7 +2377,7 @@ int print_queue_length(int snum, print_status_struct *pstatus) /* 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); /* also fetch the queue status */ memset(&status, 0, sizeof(status)); @@ -2545,7 +2546,7 @@ static WERROR print_job_checks(struct auth_serversupplied_info *server_info, } /* Insure the maximum queue size is not violated */ - *njobs = print_queue_length(snum, NULL); + *njobs = print_queue_length(msg_ctx, snum, NULL); if (*njobs > lp_maxprintjobs(snum)) { DEBUG(3, ("print_job_checks: Queue %s number of jobs (%d) " "larger than max printjobs per queue (%d).\n", |