diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 15:53:06 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 18:09:34 +0200 |
commit | a36103ca05109e402c4db57f892d61023d0e6104 (patch) | |
tree | 69b63a73436c8c2e7b99604443d7b1a99a1cc7be | |
parent | c50c973036cda52c0ce04a5220168fbfa7195dc0 (diff) | |
download | samba-a36103ca05109e402c4db57f892d61023d0e6104.tar.gz samba-a36103ca05109e402c4db57f892d61023d0e6104.tar.bz2 samba-a36103ca05109e402c4db57f892d61023d0e6104.zip |
s3: Lift the server_messaging_context from get_stored_queue_info
-rw-r--r-- | source3/printing/printing.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 581783997b..72e388fda7 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2853,7 +2853,9 @@ fail: Get a snapshot of jobs in the system without traversing. ****************************************************************************/ -static bool get_stored_queue_info(struct tdb_print_db *pdb, int snum, int *pcount, print_queue_struct **ppqueue) +static bool get_stored_queue_info(struct messaging_context *msg_ctx, + struct tdb_print_db *pdb, int snum, + int *pcount, print_queue_struct **ppqueue) { TDB_DATA data, cgdata; print_queue_struct *queue = NULL; @@ -2868,7 +2870,7 @@ static bool get_stored_queue_info(struct tdb_print_db *pdb, int snum, int *pcoun /* 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); *pcount = 0; *ppqueue = NULL; @@ -3021,7 +3023,8 @@ int print_queue_status(int snum, * of entries, and then only retrieve the queue if necessary. */ - if (!get_stored_queue_info(pdb, snum, &count, ppqueue)) { + if (!get_stored_queue_info(server_messaging_context(), pdb, snum, + &count, ppqueue)) { release_print_db(pdb); return 0; } |