diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-10 11:55:14 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-10 11:55:14 -0700 |
commit | eada8f8abe6e4b770b7a2e279fc897a4272b6fa5 (patch) | |
tree | 2cb91cd91cb12005b25b531e9ed821f153f2a916 /source3/param | |
parent | 5b75aa34069d488d23e880393d4280cbe85cc5c6 (diff) | |
download | samba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.tar.gz samba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.tar.bz2 samba-eada8f8abe6e4b770b7a2e279fc897a4272b6fa5.zip |
If you have a large number of cups printers, then scanning for print info can cause a client to timeout
(it takes longer than 30 seconds to enumerate them). Make scanning for printers async with a callback
from the main loop. This fixes a bug that was irritating *me* :-).
Jeremy.
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 94660317f8..1191c3d3aa 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -7848,7 +7848,7 @@ static void lp_add_auto_services(char *str) Auto-load one printer. ***************************************************************************/ -void lp_add_one_printer(char *name, char *comment) +void lp_add_one_printer(const char *name, const char *comment, void *pdata) { int printers = lp_servicenumber(PRINTERS_NAME); int i; |