summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-10 11:55:14 -0700
committerJeremy Allison <jra@samba.org>2008-10-10 11:55:14 -0700
commiteada8f8abe6e4b770b7a2e279fc897a4272b6fa5 (patch)
tree2cb91cd91cb12005b25b531e9ed821f153f2a916 /source3/param/loadparm.c
parent5b75aa34069d488d23e880393d4280cbe85cc5c6 (diff)
downloadsamba-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/loadparm.c')
-rw-r--r--source3/param/loadparm.c2
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;