summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-06 19:49:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:18 -0500
commit3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015 (patch)
treea9c89c3d7789c2ae269e624a4cb2188f57b43581 /source/param
parent9b1759617ce7841a78d9f792254a9e4fa814858f (diff)
downloadsamba-3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015.tar.gz
samba-3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015.tar.xz
samba-3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015.zip
r19157: Fix the build
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index b99fd8a514c..8f2258bb72f 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -5197,6 +5197,18 @@ struct share_params *next_share(struct share_iterator *list)
return result;
}
+struct share_params *next_printer(struct share_iterator *list)
+{
+ struct share_params *result;
+
+ while ((result = next_share(list)) != NULL) {
+ if (lp_print_ok(result->service)) {
+ break;
+ }
+ }
+ return result;
+}
+
/*******************************************************************
A useful volume label function.
********************************************************************/