s3: Lift the server_messaging_context from update_monitored_printq_cache
authorVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 15:19:12 +0000 (17:19 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 16:09:38 +0000 (18:09 +0200)
source3/include/proto.h
source3/rpc_server/srv_spoolss_nt.c
source3/smbd/process.c

index fb18dff5fddfd3fb2610fa027bf49e9cab46a6a7..63a1095b04993d5f5b059a5a44cc4e27240c6077 100644 (file)
@@ -4777,7 +4777,7 @@ void do_drv_upgrade_printer(struct messaging_context *msg,
                            uint32_t msg_type,
                            struct server_id server_id,
                            DATA_BLOB *data);
-void update_monitored_printq_cache( void );
+void update_monitored_printq_cache(struct messaging_context *msg_ctx);
 void reset_all_printerdata(struct messaging_context *msg,
                           void *private_data,
                           uint32_t msg_type,
index 5d3a0964ac7b41e40b72167df76880bf7197ba47..c7a234c5aa22f5306a9b15b971f5e115b164aea7 100644 (file)
@@ -1390,7 +1390,7 @@ done:
  connection
  ********************************************************************/
 
-void update_monitored_printq_cache( void )
+void update_monitored_printq_cache(struct messaging_context *msg_ctx)
 {
        Printer_entry *printer = printers_list;
        int snum;
@@ -1403,8 +1403,7 @@ void update_monitored_printq_cache( void )
                        && printer->notify.client_connected )
                {
                        snum = print_queue_snum(printer->sharename);
-                       print_queue_status(server_messaging_context(),  snum,
-                                          NULL, NULL );
+                       print_queue_status(msg_ctx, snum, NULL, NULL );
                }
 
                printer = printer->next;
index a5122245853a07d59f2b633a88faeb26aa3984db..d5f4340d4d8db631b8c297d4c8458f02bc875097 100644 (file)
@@ -2469,7 +2469,7 @@ static bool housekeeping_fn(const struct timeval *now, void *private_data)
        change_to_root_user();
 
        /* update printer queue caches if necessary */
-       update_monitored_printq_cache();
+       update_monitored_printq_cache(smbd_messaging_context());
 
        /* check if we need to reload services */
        check_reload(time(NULL));