diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/load.c | 6 | ||||
-rw-r--r-- | source3/printing/pcap.c | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/source3/printing/load.c b/source3/printing/load.c index 99b5226159..58ff8812f4 100644 --- a/source3/printing/load.c +++ b/source3/printing/load.c @@ -54,8 +54,10 @@ load automatic printer services ***************************************************************************/ void load_printers(void) { - if (!pcap_cache_loaded()) - pcap_cache_reload(); + if (!pcap_cache_loaded()) { + pcap_cache_reload(server_event_context(), + server_messaging_context()); + } add_auto_printers(); diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index d8b716028e..d9c2941abe 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -101,7 +101,8 @@ void pcap_cache_replace(const struct pcap_cache *pcache) } } -void pcap_cache_reload(void) +void pcap_cache_reload(struct tevent_context *ev, + struct messaging_context *msg_ctx) { const char *pcap_name = lp_printcapname(); bool pcap_reloaded = False; @@ -120,8 +121,7 @@ void pcap_cache_reload(void) #ifdef HAVE_CUPS if (strequal(pcap_name, "cups")) { - pcap_reloaded = cups_cache_reload(server_event_context(), - server_messaging_context()); + pcap_reloaded = cups_cache_reload(ev, msg_ctx); goto done; } #endif |