git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d8d4f2
)
r19157: Fix the build
author
Volker Lendecke
<vlendec@samba.org>
Fri, 6 Oct 2006 19:49:16 +0000
(19:49 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:15:18 +0000
(12:15 -0500)
(This used to be commit
3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015
)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index b99fd8a514cdc643ed8016697d97f6f4580ffab8..8f2258bb72fa12fb017a2f6fbaeca0515b535ce3 100644
(file)
--- 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.
********************************************************************/