summaryrefslogtreecommitdiff
path: root/source3
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
commit9e69c4fbea8dc6e9bfa6773913a68d03b2a0a85a (patch)
treef615bcaaaf9b21247ea30fc3b2e61a524f1cb78c /source3
parent9d8d4f24b1c31ecfd9284cff9de20760c78e3d29 (diff)
downloadsamba-9e69c4fbea8dc6e9bfa6773913a68d03b2a0a85a.tar.gz
samba-9e69c4fbea8dc6e9bfa6773913a68d03b2a0a85a.tar.bz2
samba-9e69c4fbea8dc6e9bfa6773913a68d03b2a0a85a.zip
r19157: Fix the build
(This used to be commit 3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015)
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b99fd8a514..8f2258bb72 100644
--- a/source3/param/loadparm.c
+++ b/source3/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.
********************************************************************/