r19157: Fix the build
authorVolker Lendecke <vlendec@samba.org>
Fri, 6 Oct 2006 19:49:16 +0000 (19:49 +0000)
committerGerald (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

index b99fd8a514cdc643ed8016697d97f6f4580ffab8..8f2258bb72fa12fb017a2f6fbaeca0515b535ce3 100644 (file)
@@ -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. 
 ********************************************************************/